Skip to content

Commit e7d48a2

Browse files
meili-bors[bot]meili-botbrunoocasali
authored
Merge #357
357: Replace IP address by localhost in code samples r=brunoocasali a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#209) for more information and the complete description about what should be done here check that issue. Co-authored-by: meili-bot <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
2 parents 8b98c84 + 13d8cec commit e7d48a2

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.code-samples.meilisearch.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
6+
getting_started_typo_tolerance: |-
7+
client.index('movies').update_typo_tolerance({ min_word_size_for_typos: { one_typo: 4 } })
8+
69
get_all_tasks_filtering_1: |-
710
client.index('movies').tasks
811
get_all_tasks_filtering_2: |-
@@ -347,7 +350,7 @@ getting_started_add_documents_md: |-
347350
require 'json'
348351
require 'meilisearch'
349352
350-
client = MeiliSearch::Client.new('http://127.0.0.1:7700')
353+
client = MeiliSearch::Client.new('http://localhost:7700')
351354
352355
movies_json = File.read('movies.json')
353356
movies = JSON.parse(movies_json)
@@ -420,7 +423,7 @@ geosearch_guide_sort_usage_1: |-
420423
geosearch_guide_sort_usage_2: |-
421424
client.index('restaurants').search('', { sort: ['_geoPoint(48.8561446, 2.2978204):asc', 'rating:desc'] })
422425
authorization_header_1: |-
423-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
426+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
424427
client.keys
425428
get_one_key_1: |-
426429
client.key('6062abda-a5aa-4414-ac91-ecd7944c0f8d')
@@ -444,24 +447,24 @@ update_a_key_1: |-
444447
delete_a_key_1: |-
445448
client.delete_key('6062abda-a5aa-4414-ac91-ecd7944c0f8d')
446449
security_guide_search_key_1: |-
447-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'apiKey')
450+
client = MeiliSearch::Client.new('http://localhost:7700', 'apiKey')
448451
client.index('patient_medical_records').search
449452
security_guide_update_key_1: |-
450-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
453+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
451454
client.update_key('74c9c733-3368-4738-bbe5-1d18a5fecb37', description: 'Default Search API Key')
452455
security_guide_create_key_1: |-
453-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
456+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
454457
client.create_key(
455458
description: 'Search patient records key',
456459
actions: ['search'],
457460
indexes: ['patient_medical_records'],
458461
expires_at: '2023-01-01T00:00:00Z'
459462
)
460463
security_guide_list_keys_1: |-
461-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
464+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
462465
client.keys
463466
security_guide_delete_key_1: |-
464-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
467+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
465468
client.delete_key('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
466469
tenant_token_guide_generate_sdk_1: |-
467470
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76'
@@ -475,7 +478,7 @@ tenant_token_guide_generate_sdk_1: |-
475478
476479
token = client.generate_tenant_token(uid, search_rules, api_key: api_key, expires_at: expires_at)
477480
tenant_token_guide_search_sdk_1: |-
478-
front_end_client = MeiliSearch::Client.new('http://127.0.0.1:7700', token)
481+
front_end_client = MeiliSearch::Client.new('http://localhost:7700', token)
479482
480483
front_end_client.index('patient_medical_records').search('blood test')
481484
getting_started_update_ranking_rules: |-
@@ -509,7 +512,7 @@ getting_started_update_displayed_attributes: |-
509512
'poster'
510513
])
511514
getting_started_communicating_with_a_protected_instance: |-
512-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'apiKey')
515+
client = MeiliSearch::Client.new('http://localhost:7700', 'apiKey')
513516
client.index('movies').search
514517
getting_started_add_meteorites: |-
515518
file = File.read('meteorites.json')
@@ -533,7 +536,7 @@ getting_started_sorting: |-
533536
getting_started_filtering: |-
534537
client.index('meteorites').search('', { filter: 'mass < 200' })
535538
landing_getting_started_1: |-
536-
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
539+
client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
537540
538541
client.index('movies').add_documents([
539542
{ id: 1, title: 'Carol' },

0 commit comments

Comments
 (0)