File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -392,3 +392,27 @@ search_parameter_guide_sort_1: |-
392
392
client.index('books').search('science fiction', {
393
393
'sort': ['price:asc']
394
394
})
395
+ geosearch_guide_filter_settings_1 : |-
396
+ client.index('restaurants').update_filterable_attributes([
397
+ '_geo'
398
+ ])
399
+ geosearch_guide_filter_usage_1 : |-
400
+ client.index('restaurants').search('', {
401
+ 'filter': '_geoRadius(45.4628328, 9.1076931, 2000)'
402
+ })
403
+ geosearch_guide_filter_usage_2 : |-
404
+ client.index('restaurants').search('', {
405
+ 'filter': '_geoRadius(45.4628328, 9.1076931, 2000) AND type = pizza'
406
+ })
407
+ geosearch_guide_sort_settings_1 : |-
408
+ client.index('restaurants').update_sortable_attributes([
409
+ '_geo'
410
+ ])
411
+ geosearch_guide_sort_usage_1 : |-
412
+ client.index('restaurants').search('', {
413
+ 'sort': ['_geoPoint(48.8583701,2.2922926):asc']
414
+ })
415
+ geosearch_guide_sort_usage_2 : |-
416
+ client.index('restaurants').search('', {
417
+ 'sort': ['_geoPoint(48.8583701,2.2922926):asc', 'rating:desc']
418
+ })
You can’t perform that action at this time.
0 commit comments