Skip to content

Commit

Permalink
Merge #408
Browse files Browse the repository at this point in the history
408: Update code samples for April 2023 r=brunoocasali a=curquiza

Fixes #395 

Co-authored-by: curquiza <clementine@meilisearch.com>
  • Loading branch information
meili-bors[bot] and curquiza authored Sep 12, 2023
2 parents 513a71b + d0e91f0 commit dad8995
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ filtering_guide_1: |-
query: "Avengers",
filter: "release_date > 795484800"
)
client.index("movies").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
client.index("movie_ratings").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
switch result {
case .success(let searchResult):
print(searchResult)
Expand All @@ -839,7 +839,7 @@ filtering_guide_2: |-
let searchParameters = SearchParameters(
query: "Batman",
filter: "release_date > 795484800 AND (director = \"Tim Burton\" OR director = \"Christopher Nolan\"")
client.index("movies").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
client.index("movie_ratings").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
switch result {
case .success(let searchResult):
print(searchResult)
Expand All @@ -850,8 +850,8 @@ filtering_guide_2: |-
filtering_guide_3: |-
let searchParameters = SearchParameters(
query: "Planet of the Apes",
filter: "rating >= 3 AND (NOT director = \"Tim Burton\"")
client.index("movies").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
filter: "release_date > 1577884550 AND (NOT director = \"Tim Burton\"))
client.index("movie_ratings").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
switch result {
case .success(let searchResult):
print(searchResult)
Expand Down Expand Up @@ -1430,7 +1430,7 @@ geosearch_guide_filter_usage_2: |-
}
geosearch_guide_filter_usage_3: |-
let searchParameters = SearchParameters(
filter: '_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'
filter: '_geoBoundingBox([45.494181, 9.214024], [45.449484, 9.179175])'
)
client.index("restaurants").search(searchParameters) { (result: Result<Searchable<Restaurant>, Swift.Error>) in
switch result {
Expand Down

0 comments on commit dad8995

Please sign in to comment.