Skip to content

Commit

Permalink
Merge #376
Browse files Browse the repository at this point in the history
376: Update code-samples for Meilisearch v1.1.0 r=brunoocasali 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]>
Co-authored-by: Bruno Casali <[email protected]>
  • Loading branch information
3 people authored Jun 14, 2023
2 parents 36432ab + 961151f commit 497572c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ reset_filterable_attributes_1: |-
print(error)
}
}
faceted_search_update_settings_1: |-
filtering_update_settings_1: |-
client.index("movies").updateFilterableAttributes(["genre", "director"]) { (result) in
switch result {
case .success(let task):
Expand Down Expand Up @@ -1507,6 +1507,18 @@ geosearch_guide_filter_usage_2: |-
print(error)
}
}
geosearch_guide_filter_usage_3: |-
let searchParameters = SearchParameters(
filter: '_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])'
)
client.index("restaurants").search(searchParameters) { (result: Result<Searchable<Restaurant>, Swift.Error>) in
switch result {
case .success(let searchResult):
print(searchResult)
case .failure(let error):
print(error)
}
}
geosearch_guide_sort_settings_1: |-
client.index("restaurants").updateSortableAttributes(["_geo"]) { (result) in
switch result {
Expand Down

0 comments on commit 497572c

Please sign in to comment.