@@ -188,6 +188,12 @@ update_displayed_attributes_1: |-
188
188
])
189
189
reset_displayed_attributes_1 : |-
190
190
client.index('movies').reset_displayed_attributes()
191
+ getting_started_typo_tolerance : |-
192
+ client.index('movies').update_typo_tolerance({
193
+ 'minWordSizeForTypos': {
194
+ 'oneTypo': 4
195
+ }
196
+ })
191
197
get_typo_tolerance_1 :
192
198
client.index('books').get_typo_tolerance()
193
199
update_typo_tolerance_1 : |-
@@ -377,7 +383,7 @@ add_movies_json_1: |-
377
383
movies = json.load(json_file)
378
384
client.index('movies').add_documents(movies)
379
385
landing_getting_started_1 : |-
380
- client = meilisearch.Client('http://127.0.0.1 :7700', 'masterKey')
386
+ client = meilisearch.Client('http://localhost :7700', 'masterKey')
381
387
382
388
client.index('movies').add_documents([
383
389
{ 'id': 1, 'title': 'Carol' },
@@ -403,7 +409,7 @@ getting_started_add_documents_md: |-
403
409
import meilisearch
404
410
import json
405
411
406
- client = meilisearch.Client('http://127.0.0.1 :7700')
412
+ client = meilisearch.Client('http://localhost :7700')
407
413
408
414
json_file = open('movies.json')
409
415
movies = json.load(json_file)
@@ -480,7 +486,7 @@ getting_started_configure_settings: |-
480
486
]
481
487
})
482
488
getting_started_communicating_with_a_protected_instance : |-
483
- client = Client('http://127.0.0.1 :7700', 'apiKey')
489
+ client = Client('http://localhost :7700', 'apiKey')
484
490
client.index('movies').search()
485
491
faceted_search_update_settings_1 : |-
486
492
client.index('movies').update_filterable_attributes([
@@ -566,29 +572,29 @@ primary_field_guide_add_document_primary_key: |-
566
572
'price': 5.00
567
573
}], 'reference_number')
568
574
security_guide_search_key_1 : |-
569
- client = Client('http://127.0.0.1 :7700', 'apiKey')
575
+ client = Client('http://localhost :7700', 'apiKey')
570
576
client.index('patient_medical_records').search()
571
577
security_guide_update_key_1 : |-
572
- client = Client('http://127.0.0.1 :7700', 'masterKey')
578
+ client = Client('http://localhost :7700', 'masterKey')
573
579
client.update_key(key_or_uid='74c9c733-3368-4738-bbe5-1d18a5fecb37', options={
574
580
'description': 'Default Search API Key'
575
581
})
576
582
security_guide_create_key_1 : |-
577
- client = Client('http://127.0.0.1 :7700', 'masterKey')
583
+ client = Client('http://localhost :7700', 'masterKey')
578
584
client.create_key(options={
579
585
'description': 'Search patient records key',
580
586
'actions': ['search'],
581
587
'indexes': ['patient_medical_records'],
582
588
'expiresAt': '2023-01-01T00:00:00Z'
583
589
})
584
590
security_guide_list_keys_1 : |-
585
- client = Client('http://127.0.0.1 :7700', 'masterKey')
591
+ client = Client('http://localhost :7700', 'masterKey')
586
592
client.get_keys()
587
593
security_guide_delete_key_1 : |-
588
- client = Client('http://127.0.0.1 :7700', 'masterKey')
594
+ client = Client('http://localhost :7700', 'masterKey')
589
595
client.delete_key('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
590
596
authorization_header_1 : |-
591
- client = Client('http://127.0.0.1 :7700', 'masterKey')
597
+ client = Client('http://localhost :7700', 'masterKey')
592
598
client.get_keys()
593
599
tenant_token_guide_generate_sdk_1 : |-
594
600
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76';
@@ -601,7 +607,7 @@ tenant_token_guide_generate_sdk_1: |-
601
607
}
602
608
token = client.generate_tenant_token(api_key_uid=uid, search_rules=search_rules, api_key=api_key, expires_at=expires_at)
603
609
tenant_token_guide_search_sdk_1 : |-
604
- front_end_client = Client('http://127.0.0.1 :7700', token)
610
+ front_end_client = Client('http://localhost :7700', token)
605
611
front_end_client.index('patient_medical_records').search('blood test')
606
612
get_all_tasks_filtering_1 : |-
607
613
client.index.('movies').get_tasks()
0 commit comments