Skip to content

Commit 04d82d8

Browse files
authored
Merge branch 'main' into update_version_to_v0.19.2
2 parents 25901df + e801e85 commit 04d82d8

24 files changed

+449
-273
lines changed

.code-samples.meilisearch.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ update_displayed_attributes_1: |-
188188
])
189189
reset_displayed_attributes_1: |-
190190
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+
})
191197
get_typo_tolerance_1:
192198
client.index('books').get_typo_tolerance()
193199
update_typo_tolerance_1: |-
@@ -377,7 +383,7 @@ add_movies_json_1: |-
377383
movies = json.load(json_file)
378384
client.index('movies').add_documents(movies)
379385
landing_getting_started_1: |-
380-
client = meilisearch.Client('http://127.0.0.1:7700', 'masterKey')
386+
client = meilisearch.Client('http://localhost:7700', 'masterKey')
381387
382388
client.index('movies').add_documents([
383389
{ 'id': 1, 'title': 'Carol' },
@@ -403,7 +409,7 @@ getting_started_add_documents_md: |-
403409
import meilisearch
404410
import json
405411
406-
client = meilisearch.Client('http://127.0.0.1:7700')
412+
client = meilisearch.Client('http://localhost:7700')
407413
408414
json_file = open('movies.json')
409415
movies = json.load(json_file)
@@ -480,7 +486,7 @@ getting_started_configure_settings: |-
480486
]
481487
})
482488
getting_started_communicating_with_a_protected_instance: |-
483-
client = Client('http://127.0.0.1:7700', 'apiKey')
489+
client = Client('http://localhost:7700', 'apiKey')
484490
client.index('movies').search()
485491
faceted_search_update_settings_1: |-
486492
client.index('movies').update_filterable_attributes([
@@ -566,29 +572,29 @@ primary_field_guide_add_document_primary_key: |-
566572
'price': 5.00
567573
}], 'reference_number')
568574
security_guide_search_key_1: |-
569-
client = Client('http://127.0.0.1:7700', 'apiKey')
575+
client = Client('http://localhost:7700', 'apiKey')
570576
client.index('patient_medical_records').search()
571577
security_guide_update_key_1: |-
572-
client = Client('http://127.0.0.1:7700', 'masterKey')
578+
client = Client('http://localhost:7700', 'masterKey')
573579
client.update_key(key_or_uid='74c9c733-3368-4738-bbe5-1d18a5fecb37', options={
574580
'description': 'Default Search API Key'
575581
})
576582
security_guide_create_key_1: |-
577-
client = Client('http://127.0.0.1:7700', 'masterKey')
583+
client = Client('http://localhost:7700', 'masterKey')
578584
client.create_key(options={
579585
'description': 'Search patient records key',
580586
'actions': ['search'],
581587
'indexes': ['patient_medical_records'],
582588
'expiresAt': '2023-01-01T00:00:00Z'
583589
})
584590
security_guide_list_keys_1: |-
585-
client = Client('http://127.0.0.1:7700', 'masterKey')
591+
client = Client('http://localhost:7700', 'masterKey')
586592
client.get_keys()
587593
security_guide_delete_key_1: |-
588-
client = Client('http://127.0.0.1:7700', 'masterKey')
594+
client = Client('http://localhost:7700', 'masterKey')
589595
client.delete_key('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
590596
authorization_header_1: |-
591-
client = Client('http://127.0.0.1:7700', 'masterKey')
597+
client = Client('http://localhost:7700', 'masterKey')
592598
client.get_keys()
593599
tenant_token_guide_generate_sdk_1: |-
594600
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76';
@@ -601,7 +607,7 @@ tenant_token_guide_generate_sdk_1: |-
601607
}
602608
token = client.generate_tenant_token(api_key_uid=uid, search_rules=search_rules, api_key=api_key, expires_at=expires_at)
603609
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)
605611
front_end_client.index('patient_medical_records').search('blood test')
606612
get_all_tasks_filtering_1: |-
607613
client.index.('movies').get_tasks()

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can set up your local environment natively or using `docker`, check out the
3232

3333
Example of running all the checks with docker:
3434
```bash
35-
docker-compose run --rm package bash -c "pipenv run mypy meilisearch && pipenv run pylint meilisearch && pipenv run pytest tests"
35+
docker-compose run --rm package bash -c "pipenv install --dev && pipenv run mypy meilisearch && pipenv run pylint meilisearch && pipenv run pytest tests"
3636
```
3737

3838
To install dependencies:

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ types-requests = "*"
1515

1616
[packages]
1717
requests = "*"
18+
camel-converter = {extras = ["pydantic"], version = "*"}

0 commit comments

Comments
 (0)