Skip to content

Commit

Permalink
Merge #409
Browse files Browse the repository at this point in the history
409: Fill missing code samples r=brunoocasali a=curquiza

And removed code samples related to non-ready features -> I updated the related issues with the code samples to update

Co-authored-by: curquiza <clementine@meilisearch.com>
  • Loading branch information
meili-bors[bot] and curquiza authored Sep 13, 2023
2 parents dad8995 + bfdc63f commit 65d40d7
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ async_guide_filter_by_index_uids_1: |-
print(error)
}
}
delete_tasks_1: |-
cancel_tasks_1: |-
async_guide_canceled_by: |-
client.getTasks(params: TasksQuery(canceledBy: [9, 15])) { result in
switch result {
Expand All @@ -170,7 +168,6 @@ async_guide_canceled_by: |-
print(error)
}
}
swap_indexes_1: |-
search_parameter_guide_hitsperpage_1: |-
let searchParameters = SearchParameters.query("", hitsPerPage: 15)
client.index("movies").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
Expand Down Expand Up @@ -1283,6 +1280,23 @@ faceted_search_facets_1: |-
}
}
faceted_search_walkthrough_filter_1: |-
let searchParameters = SearchParameters(
query: "thriller",
filter: [
[
"genres = Horror",
"genres = Mystery"
],
"director = \"Jordan Peele\""
])
client.index("movies").search(searchParameters) { (result: Result<Searchable<Movie>, Swift.Error>) in
switch result {
case .success(let searchResult):
print(searchResult)
case .failure(let error):
print(error)
}
}
phrase_search_1: |-
let searchParameters = SearchParameters(
query: "\"african american\" horror")
Expand Down

0 comments on commit 65d40d7

Please sign in to comment.