Skip to content

Commit 3bb2dbe

Browse files
meili-botbidoubiwa
authored andcommitted
Update .code-samples.meilisearch.yaml with changes of Meilisearch v1.1
1 parent e488af7 commit 3bb2dbe

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: |-
@@ -550,7 +567,7 @@ update_filterable_attributes_1: |-
550567
])
551568
reset_filterable_attributes_1: |-
552569
client.index('movies').resetFilterableAttributes()
553-
faceted_search_update_settings_1: |-
570+
filtering_update_settings_1: |-
554571
client.index('movies')
555572
.updateFilterableAttributes([
556573
'director',
@@ -571,6 +588,29 @@ faceted_search_walkthrough_filter_1: |-
571588
.search('thriller', {
572589
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
573590
})
591+
faceted_search_update_settings_1: |-
592+
client.index('books').updateFilterableAttributes(['genres', 'rating', 'language'])
593+
faceted_search_1: |-
594+
client.index('books').search('classic', { facets: ['genres', 'rating', 'language'] })
595+
faceted_search_2: |-
596+
client.multiSearch({ queries: [
597+
{
598+
indexUid: 'books',
599+
facets: ['language', 'genres', 'author', 'format'],
600+
filter: [['language = English', 'language = French'], ['genres = Fiction']]
601+
},
602+
{
603+
indexUid: 'books',
604+
facets: ['language'],
605+
filter: [['genres = Fiction']]
606+
},
607+
{
608+
indexUid: 'books',
609+
facets: ['genres'],
610+
filter: [['language = English', 'language = French']]
611+
}
612+
]
613+
})
574614
post_dump_1: |-
575615
client.createDump()
576616
phrase_search_1: |-
@@ -628,6 +668,8 @@ search_parameter_guide_sort_1: |-
628668
client.index('books').search('science fiction', {
629669
sort: ['price:asc'],
630670
})
671+
search_parameter_guide_facet_stats_1: |-
672+
client.index('movie_ratings').search('Batman', { facets: ['genres', 'rating'] })
631673
geosearch_guide_filter_settings_1: |-
632674
client.index('restaurants')
633675
.updateFilterableAttributes([
@@ -641,6 +683,10 @@ geosearch_guide_filter_usage_2: |-
641683
client.index('restaurants').search('', {
642684
filter: ['_geoRadius(45.472735, 9.184019, 2000) AND type = pizza'],
643685
})
686+
geosearch_guide_filter_usage_3: |-
687+
client.index('restaurants').search('', {
688+
filter: ['_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'],
689+
})
644690
geosearch_guide_sort_settings_1: |-
645691
client.index('restaurants').updateSortableAttributes([
646692
'_geo'

0 commit comments

Comments
 (0)