Skip to content

Commit

Permalink
Update code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed Aug 28, 2023
1 parent 83a68ff commit 0171a6e
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,19 +300,19 @@ field_properties_guide_displayed_1: |-
'release_date',
]
)
PLEASE_UPDATE_ME>>>>>>>>>>>>>filtering_guide_1: |-
client.index('movies').search('Avengers', {
filtering_guide_1: |-
client.index('movie_ratings').search('Avengers', {
filter: 'release_date > 795484800'
})
PLEASE_UPDATE_ME>>>>>>>>>>>>>filtering_guide_2: |-
client.index('movies').search('Batman', {
filtering_guide_2: |-
client.index('movie_ratings').search('Batman', {
filter: 'release_date > 795484800 AND (director = "Tim Burton" OR director = "Christopher Nolan")'
})
PLEASE_UPDATE_ME>>>>>>>>>>>>>filtering_guide_3: |-
client.index('movies').search('Planet of the Apes', {
filter: 'rating >= 3 AND (NOT director = "Tim Burton")'
filtering_guide_3: |-
client.index('movie_ratings').search('Planet of the Apes', {
filter: "release_date > 1577884550 AND (NOT director = \"Tim Burton\")"
})
PLEASE_UPDATE_ME>>>>>>>>>>>>>filtering_guide_nested_1: |-
filtering_guide_nested_1: |-
client.index('movie_ratings').search('thriller', {
filter: 'rating.users >= 90'
})
Expand Down Expand Up @@ -540,11 +540,6 @@ filtering_update_settings_1: |-
'director',
'genres'
])
REMOVE_ME>>>>>>>>>>>>>faceted_search_filter_1: |-
client.index('movies')
.search('thriller', {
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
})
faceted_search_facets_1: |-
client.index('movies')
.search('Batman', {
Expand All @@ -555,26 +550,27 @@ faceted_search_walkthrough_filter_1: |-
.search('thriller', {
filter: [['genres = Horror', 'genres = Mystery'], 'director = "Jordan Peele"']
})
PLEASE_UPDATE_ME>>>>>>>>>>>>>faceted_search_update_settings_1: |-
client.index('books').updateFilterableAttributes(['genres', 'rating', 'language'])
faceted_search_update_settings_1: |-
client.index('movie_ratings').updateFilterableAttributes(['genres', 'rating', 'language'])
faceted_search_1: |-
client.index('books').search('classic', { facets: ['genres', 'rating', 'language'] })
PLEASE_UPDATE_ME>>>>>>>>>>>>>faceted_search_2: |-
client.multiSearch({ queries: [
client.multiSearch({
queries: [
{
indexUid: 'books',
facets: ['language', 'genres', 'author', 'format'],
filter: [['language = English', 'language = French'], ['genres = Fiction']]
filter: "(language = English AND language = French) OR genres = Fiction"
},
{
indexUid: 'books',
facets: ['language'],
filter: [['genres = Fiction']]
filter: 'genres = Fiction'
},
{
indexUid: 'books',
facets: ['genres'],
filter: [['language = English', 'language = French']]
filter: 'language = English OR language = French'
}
]
})
Expand Down Expand Up @@ -656,9 +652,9 @@ geosearch_guide_filter_usage_2: |-
client.index('restaurants').search('', {
filter: ['_geoRadius(45.472735, 9.184019, 2000) AND type = pizza'],
})
PLEASE_UPDATE_ME>>>>>>>>>>>>>geosearch_guide_filter_usage_3: |-
geosearch_guide_filter_usage_3: |-
client.index('restaurants').search('', {
filter: ['_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'],
filter: ['_geoBoundingBox([45.494181, 9.214024], [45.449484, 9.179175])'],
})
geosearch_guide_sort_settings_1: |-
client.index('restaurants').updateSortableAttributes([
Expand Down

0 comments on commit 0171a6e

Please sign in to comment.