3
3
# the documentation on build
4
4
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
5
5
---
6
+ getting_started_typo_tolerance : |-
7
+
6
8
get_one_index_1 : |-
7
9
client.get_index('movies')
8
10
list_all_indexes_1 : |-
@@ -377,7 +379,7 @@ add_movies_json_1: |-
377
379
movies = json.load(json_file)
378
380
client.index('movies').add_documents(movies)
379
381
landing_getting_started_1 : |-
380
- client = meilisearch.Client('http://127.0.0.1 :7700', 'masterKey')
382
+ client = meilisearch.Client('http://localhost :7700', 'masterKey')
381
383
382
384
client.index('movies').add_documents([
383
385
{ 'id': 1, 'title': 'Carol' },
@@ -403,7 +405,7 @@ getting_started_add_documents_md: |-
403
405
import meilisearch
404
406
import json
405
407
406
- client = meilisearch.Client('http://127.0.0.1 :7700')
408
+ client = meilisearch.Client('http://localhost :7700')
407
409
408
410
json_file = open('movies.json')
409
411
movies = json.load(json_file)
@@ -480,7 +482,7 @@ getting_started_configure_settings: |-
480
482
]
481
483
})
482
484
getting_started_communicating_with_a_protected_instance : |-
483
- client = Client('http://127.0.0.1 :7700', 'apiKey')
485
+ client = Client('http://localhost :7700', 'apiKey')
484
486
client.index('movies').search()
485
487
faceted_search_update_settings_1 : |-
486
488
client.index('movies').update_filterable_attributes([
@@ -566,29 +568,29 @@ primary_field_guide_add_document_primary_key: |-
566
568
'price': 5.00
567
569
}], 'reference_number')
568
570
security_guide_search_key_1 : |-
569
- client = Client('http://127.0.0.1 :7700', 'apiKey')
571
+ client = Client('http://localhost :7700', 'apiKey')
570
572
client.index('patient_medical_records').search()
571
573
security_guide_update_key_1 : |-
572
- client = Client('http://127.0.0.1 :7700', 'masterKey')
574
+ client = Client('http://localhost :7700', 'masterKey')
573
575
client.update_key(key_or_uid='74c9c733-3368-4738-bbe5-1d18a5fecb37', options={
574
576
'description': 'Default Search API Key'
575
577
})
576
578
security_guide_create_key_1 : |-
577
- client = Client('http://127.0.0.1 :7700', 'masterKey')
579
+ client = Client('http://localhost :7700', 'masterKey')
578
580
client.create_key(options={
579
581
'description': 'Search patient records key',
580
582
'actions': ['search'],
581
583
'indexes': ['patient_medical_records'],
582
584
'expiresAt': '2023-01-01T00:00:00Z'
583
585
})
584
586
security_guide_list_keys_1 : |-
585
- client = Client('http://127.0.0.1 :7700', 'masterKey')
587
+ client = Client('http://localhost :7700', 'masterKey')
586
588
client.get_keys()
587
589
security_guide_delete_key_1 : |-
588
- client = Client('http://127.0.0.1 :7700', 'masterKey')
590
+ client = Client('http://localhost :7700', 'masterKey')
589
591
client.delete_key('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
590
592
authorization_header_1 : |-
591
- client = Client('http://127.0.0.1 :7700', 'masterKey')
593
+ client = Client('http://localhost :7700', 'masterKey')
592
594
client.get_keys()
593
595
tenant_token_guide_generate_sdk_1 : |-
594
596
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76';
@@ -601,7 +603,7 @@ tenant_token_guide_generate_sdk_1: |-
601
603
}
602
604
token = client.generate_tenant_token(api_key_uid=uid, search_rules=search_rules, api_key=api_key, expires_at=expires_at)
603
605
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)
605
607
front_end_client.index('patient_medical_records').search('blood test')
606
608
get_all_tasks_filtering_1 : |-
607
609
client.index.('movies').get_tasks()
0 commit comments