Skip to content

Commit 9e5e00d

Browse files
bors[bot]Joaquín R. Montes
and
Joaquín R. Montes
authored
Merge #727
727: fix: remove duplicate key on code-samples r=alallema a=justkahdri # Pull Request Discovered debugging the following error: ```bash Error: The sample file of Python SDK cannot be converted to JSON Project: meilisearch-python --- get_one_index_1: |- client.get_ind ------ ↓ ORIGINAL ERROR ↓ ------ duplicated mapping key (543:1) 540 | client.index('books').search( ... 541 | 'sort': ['rating.users:asc'] 542 | }) 543 | search_parameter_guide_sort_1: |- -------^ 544 | client.index('books').search( ... 545 | 'sort': ['price:asc'] ``` ## What does this PR do? - Removes duplicate key on the .code-samples.meilisearch.yml. _This avoids the sampleYamlToJs function failure when trying to parse the content to a JS object._ ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: Joaquín R. Montes <[email protected]>
2 parents 1e50c19 + 1bda943 commit 9e5e00d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.code-samples.meilisearch.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,6 @@ sorting_guide_sort_nested_1: |-
540540
client.index('books').search('science fiction', {
541541
'sort': ['rating.users:asc']
542542
})
543-
search_parameter_guide_sort_1: |-
544-
client.index('books').search('science fiction', {
545-
'sort': ['price:asc']
546-
})
547543
geosearch_guide_filter_settings_1: |-
548544
client.index('restaurants').update_filterable_attributes([
549545
'_geo'

0 commit comments

Comments
 (0)