Skip to content

Commit

Permalink
Merge pull request #331 from meilisearch/code-sample
Browse files Browse the repository at this point in the history
Update code sample v0.23.0
  • Loading branch information
alallema authored Oct 11, 2021
2 parents 1a42526 + 104b7cf commit 90430bf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,3 +392,27 @@ search_parameter_guide_sort_1: |-
client.index('books').search('science fiction', {
'sort': ['price:asc']
})
geosearch_guide_filter_settings_1: |-
client.index('restaurants').update_filterable_attributes([
'_geo'
])
geosearch_guide_filter_usage_1: |-
client.index('restaurants').search('', {
'filter': '_geoRadius(45.4628328, 9.1076931, 2000)'
})
geosearch_guide_filter_usage_2: |-
client.index('restaurants').search('', {
'filter': '_geoRadius(45.4628328, 9.1076931, 2000) AND type = pizza'
})
geosearch_guide_sort_settings_1: |-
client.index('restaurants').update_sortable_attributes([
'_geo'
])
geosearch_guide_sort_usage_1: |-
client.index('restaurants').search('', {
'sort': ['_geoPoint(48.8583701,2.2922926):asc']
})
geosearch_guide_sort_usage_2: |-
client.index('restaurants').search('', {
'sort': ['_geoPoint(48.8583701,2.2922926):asc', 'rating:desc']
})

0 comments on commit 90430bf

Please sign in to comment.