Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code-samples request from Feb/23 #374

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
# the documentation on build
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
---
filtering_guide_nested_1: |-
with data: { "index": "movies", "q": "thriller", "filter": "rating.users >= 90" }
curquiza marked this conversation as resolved.
Show resolved Hide resolved

sorting_guide_sort_nested_1: |-
with data: { "index": "books", "q": "science fiction", "sort": ["rating.users:asc"] }

getting_started_faceting: |-
client.index("movies").updateFaceting({ maxValuesPerFacet: 2 })
getting_started_pagination: |-
Expand Down Expand Up @@ -758,7 +764,7 @@ get_version_1: |-
print(error)
}
}
distinct_attribute_guide_1: |-
>>>>>>>>>>>>>>>> UPDATE_ME distinct_attribute_guide_1 (use distinct attribute route): |-
client.index("jackets").updateDistinctAttribute("product_id") { (result) in
switch result {
case .success(let task):
Expand All @@ -767,7 +773,7 @@ distinct_attribute_guide_1: |-
print(error)
}
}
field_properties_guide_searchable_1: |-
>>>>>>>>>>>>>>>> UPDATE_ME field_properties_guide_searchable_1 (use searchable attribute route): |-
let searchableAttributes: [String] = [
"title",
"overview",
Expand All @@ -781,7 +787,7 @@ field_properties_guide_searchable_1: |-
print(error)
}
}
field_properties_guide_displayed_1: |-
>>>>>>>>>>>>>>>> UPDATE_ME field_properties_guide_displayed_1 (use displayed attribute route): |-
let displayedAttributes: [String] = [
"title",
"overview",
Expand Down Expand Up @@ -942,7 +948,7 @@ search_parameter_guide_show_matches_position_1: |-
print(error)
}
}
settings_guide_stop_words_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_stop_words_1: |-
let settings = Setting(
stopWords: [
"the",
Expand All @@ -957,7 +963,7 @@ settings_guide_stop_words_1: |-
print(error)
}
}
settings_guide_ranking_rules_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_ranking_rules_1: |-
let settings = Setting(
rankingRules: [
"words",
Expand All @@ -977,7 +983,7 @@ settings_guide_ranking_rules_1: |-
print(error)
}
}
settings_guide_distinct_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_distinct_1: |-
let settings = Setting(
distinctAttribute: "product_id"
)
Expand All @@ -989,7 +995,7 @@ settings_guide_distinct_1: |-
print(error)
}
}
settings_guide_searchable_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_searchable_1: |-
let settings = Setting(
searchableAttributes: [
"title",
Expand All @@ -1004,7 +1010,7 @@ settings_guide_searchable_1: |-
print(error)
}
}
settings_guide_synonyms_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_synonyms_1: |-
let settings = Setting(
synonyms: [
"sweater": ["jumper"],
Expand All @@ -1018,7 +1024,7 @@ settings_guide_synonyms_1: |-
print(error)
}
}
settings_guide_displayed_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_displayed_1: |-
let settings = Setting(
displayedAttributes: [
"title",
Expand All @@ -1034,7 +1040,7 @@ settings_guide_displayed_1: |-
print(error)
}
}
settings_guide_sortable_1: |-
>>>>>>>>>>> REMOVE_ME settings_guide_sortable_1: |-
let settings = Setting(
sortableAttributes: [
"author",
Expand Down