Skip to content

Commit aaf2a32

Browse files
Merge #1471
1471: Update code-samples for Meilisearch v1.1.0 r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue. Co-authored-by: meili-bot <[email protected]>
2 parents c9574f9 + 3bb2dbe commit aaf2a32

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,23 @@ search_post_1: |-
6868
client.index('movies').search('American ninja')
6969
search_get_1: |-
7070
client.index('movies').search('American ninja')
71+
multi_search_1: |-
72+
client.multiSearch({ queries: [
73+
{
74+
indexUid: 'movies',
75+
q: 'pooh',
76+
limit: 5,
77+
},
78+
{
79+
indexUid: 'movies',
80+
q: 'nemo',
81+
limit: 5,
82+
},
83+
{
84+
indexUid: 'movie_ratings',
85+
q: 'us',
86+
},
87+
]})
7188
get_all_tasks_1: |-
7289
client.getTasks()
7390
get_task_1: |-
@@ -488,7 +505,7 @@ update_filterable_attributes_1: |-
488505
])
489506
reset_filterable_attributes_1: |-
490507
client.index('movies').resetFilterableAttributes()
491-
faceted_search_update_settings_1: |-
508+
filtering_update_settings_1: |-
492509
client.index('movies')
493510
.updateFilterableAttributes([
494511
'director',
@@ -509,6 +526,29 @@ faceted_search_walkthrough_filter_1: |-
509526
.search('thriller', {
510527
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
511528
})
529+
faceted_search_update_settings_1: |-
530+
client.index('books').updateFilterableAttributes(['genres', 'rating', 'language'])
531+
faceted_search_1: |-
532+
client.index('books').search('classic', { facets: ['genres', 'rating', 'language'] })
533+
faceted_search_2: |-
534+
client.multiSearch({ queries: [
535+
{
536+
indexUid: 'books',
537+
facets: ['language', 'genres', 'author', 'format'],
538+
filter: [['language = English', 'language = French'], ['genres = Fiction']]
539+
},
540+
{
541+
indexUid: 'books',
542+
facets: ['language'],
543+
filter: [['genres = Fiction']]
544+
},
545+
{
546+
indexUid: 'books',
547+
facets: ['genres'],
548+
filter: [['language = English', 'language = French']]
549+
}
550+
]
551+
})
512552
post_dump_1: |-
513553
client.createDump()
514554
phrase_search_1: |-
@@ -566,6 +606,8 @@ search_parameter_guide_sort_1: |-
566606
client.index('books').search('science fiction', {
567607
sort: ['price:asc'],
568608
})
609+
search_parameter_guide_facet_stats_1: |-
610+
client.index('movie_ratings').search('Batman', { facets: ['genres', 'rating'] })
569611
geosearch_guide_filter_settings_1: |-
570612
client.index('restaurants')
571613
.updateFilterableAttributes([
@@ -579,6 +621,10 @@ geosearch_guide_filter_usage_2: |-
579621
client.index('restaurants').search('', {
580622
filter: ['_geoRadius(45.472735, 9.184019, 2000) AND type = pizza'],
581623
})
624+
geosearch_guide_filter_usage_3: |-
625+
client.index('restaurants').search('', {
626+
filter: ['_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'],
627+
})
582628
geosearch_guide_sort_settings_1: |-
583629
client.index('restaurants').updateSortableAttributes([
584630
'_geo'

0 commit comments

Comments
 (0)