Skip to content

Commit 814623d

Browse files
committed
Update .code-samples.meilisearch.yaml
1 parent bca102c commit 814623d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.code-samples.meilisearch.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
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+
68
get_one_index_1: |-
79
client.get_index('movies')
810
list_all_indexes_1: |-
@@ -377,7 +379,7 @@ add_movies_json_1: |-
377379
movies = json.load(json_file)
378380
client.index('movies').add_documents(movies)
379381
landing_getting_started_1: |-
380-
client = meilisearch.Client('http://127.0.0.1:7700', 'masterKey')
382+
client = meilisearch.Client('http://localhost:7700', 'masterKey')
381383
382384
client.index('movies').add_documents([
383385
{ 'id': 1, 'title': 'Carol' },
@@ -403,7 +405,7 @@ getting_started_add_documents_md: |-
403405
import meilisearch
404406
import json
405407
406-
client = meilisearch.Client('http://127.0.0.1:7700')
408+
client = meilisearch.Client('http://localhost:7700')
407409
408410
json_file = open('movies.json')
409411
movies = json.load(json_file)
@@ -480,7 +482,7 @@ getting_started_configure_settings: |-
480482
]
481483
})
482484
getting_started_communicating_with_a_protected_instance: |-
483-
client = Client('http://127.0.0.1:7700', 'apiKey')
485+
client = Client('http://localhost:7700', 'apiKey')
484486
client.index('movies').search()
485487
faceted_search_update_settings_1: |-
486488
client.index('movies').update_filterable_attributes([
@@ -566,29 +568,29 @@ primary_field_guide_add_document_primary_key: |-
566568
'price': 5.00
567569
}], 'reference_number')
568570
security_guide_search_key_1: |-
569-
client = Client('http://127.0.0.1:7700', 'apiKey')
571+
client = Client('http://localhost:7700', 'apiKey')
570572
client.index('patient_medical_records').search()
571573
security_guide_update_key_1: |-
572-
client = Client('http://127.0.0.1:7700', 'masterKey')
574+
client = Client('http://localhost:7700', 'masterKey')
573575
client.update_key(key_or_uid='74c9c733-3368-4738-bbe5-1d18a5fecb37', options={
574576
'description': 'Default Search API Key'
575577
})
576578
security_guide_create_key_1: |-
577-
client = Client('http://127.0.0.1:7700', 'masterKey')
579+
client = Client('http://localhost:7700', 'masterKey')
578580
client.create_key(options={
579581
'description': 'Search patient records key',
580582
'actions': ['search'],
581583
'indexes': ['patient_medical_records'],
582584
'expiresAt': '2023-01-01T00:00:00Z'
583585
})
584586
security_guide_list_keys_1: |-
585-
client = Client('http://127.0.0.1:7700', 'masterKey')
587+
client = Client('http://localhost:7700', 'masterKey')
586588
client.get_keys()
587589
security_guide_delete_key_1: |-
588-
client = Client('http://127.0.0.1:7700', 'masterKey')
590+
client = Client('http://localhost:7700', 'masterKey')
589591
client.delete_key('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
590592
authorization_header_1: |-
591-
client = Client('http://127.0.0.1:7700', 'masterKey')
593+
client = Client('http://localhost:7700', 'masterKey')
592594
client.get_keys()
593595
tenant_token_guide_generate_sdk_1: |-
594596
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76';
@@ -601,7 +603,7 @@ tenant_token_guide_generate_sdk_1: |-
601603
}
602604
token = client.generate_tenant_token(api_key_uid=uid, search_rules=search_rules, api_key=api_key, expires_at=expires_at)
603605
tenant_token_guide_search_sdk_1: |-
604-
front_end_client = Client('http://127.0.0.1:7700', token)
606+
front_end_client = Client('http://localhost:7700', token)
605607
front_end_client.index('patient_medical_records').search('blood test')
606608
get_all_tasks_filtering_1: |-
607609
client.index.('movies').get_tasks()

0 commit comments

Comments
 (0)