@@ -335,8 +335,8 @@ add_movies_json_1: |-
335
335
client.index('movies').add_documents(movies)
336
336
documents_guide_add_movie_1 : |-
337
337
client.index('movies').add_documents([{
338
- " movie_id": " 123sq178" ,
339
- " title": " Amelie Poulain"
338
+ movie_id: ' 123sq178' ,
339
+ title: ' Amelie Poulain'
340
340
}])
341
341
getting_started_add_documents_md : |-
342
342
```bash
@@ -362,11 +362,33 @@ getting_started_search_md: |-
362
362
```
363
363
364
364
[About this SDK](https://www.github.com/meilisearch/meilisearch-ruby)
365
- faceted_search_update_settings_1 : |-
365
+ filtering_update_settings_1 : |-
366
366
client.index('movies').update_filterable_attributes([
367
367
'director',
368
368
'genres'
369
369
])
370
+ faceted_search_1 : |-
371
+ client.index('books').search('classic', {
372
+ facets: ['genres', 'rating', 'language']
373
+ })
374
+ faceted_search_2 : |-
375
+ client.multi_search([
376
+ {
377
+ indexUid: 'books',
378
+ facets: ['language', 'genres', 'author', 'format'],
379
+ filter: [['language = English', 'language = French'], ['genres = Fiction']]
380
+ },
381
+ {
382
+ indexUid: 'books',
383
+ facets: ['language'],
384
+ filter: [['genres = Fiction']]
385
+ },
386
+ {
387
+ indexUid: 'books',
388
+ facets: ['genres'],
389
+ filter: [['language = English', 'language = French']]
390
+ }
391
+ ])
370
392
faceted_search_filter_1 : |-
371
393
client.index('movies').search('thriller', {
372
394
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
@@ -377,6 +399,8 @@ faceted_search_walkthrough_filter_1: |-
377
399
client.index('movies').search('thriller', {
378
400
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
379
401
})
402
+ faceted_search_update_settings_1 : |-
403
+ client.index('books').update_filterable_attributes(['genres', 'rating', 'language'])
380
404
post_dump_1 : |-
381
405
client.create_dump
382
406
phrase_search_1 : |-
@@ -415,6 +439,8 @@ geosearch_guide_filter_usage_1: |-
415
439
client.index('restaurants').search('', { filter: '_geoRadius(45.472735, 9.184019, 2000)' })
416
440
geosearch_guide_filter_usage_2 : |-
417
441
client.index('restaurants').search('', { filter: '_geoRadius(45.472735, 9.184019, 2000) AND type = pizza' })
442
+ geosearch_guide_filter_usage_3 : |-
443
+ client.index('restaurants').search('', { filter: ['_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'] })
418
444
geosearch_guide_sort_settings_1 : |-
419
445
client.index('restaurants').update_sortable_attributes(['_geo'])
420
446
geosearch_guide_sort_usage_1 : |-
@@ -570,3 +596,10 @@ typo_tolerance_guide_4: |-
570
596
two_typos: 10
571
597
}
572
598
})
599
+ multi_search_1 : |-
600
+ client.multi_search([
601
+ { index_uid: 'books', q: 'prince' },
602
+ { index_uid: 'movies', q: 'pooh', limit: 5 }
603
+ { index_uid: 'movies', q: 'nemo', limit: 5 }
604
+ { index_uid: 'movie_ratings', q: 'us' }
605
+ ])
0 commit comments