You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Composition/Models/CompositionParams.swift
+23-10Lines changed: 23 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,6 @@ public struct CompositionParams: Codable, JSONEncodable {
80
80
publicvarpage:Int?
81
81
/// Search query.
82
82
publicvarquery:String?
83
-
/// Relevancy threshold below which less relevant results aren't included in the results You can only set
84
-
/// `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).
85
-
/// Use this setting to strike a balance between the relevance and number of returned results.
86
-
publicvarrelevancyStrictness:Int?
87
83
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection
88
84
/// dictionaries This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
89
85
/// settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk)
@@ -92,9 +88,20 @@ public struct CompositionParams: Codable, JSONEncodable {
92
88
/// or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to
93
89
/// unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations).
/// Relevancy threshold below which less relevant results aren't included in the results You can only set
92
+
/// `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).
93
+
/// Use this setting to strike a balance between the relevance and number of returned results.
94
+
publicvarrelevancyStrictness:Int?
95
95
/// Assigns a rule context to the run query [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context)
96
96
/// are strings that you can use to trigger matching rules.
97
97
publicvarruleContexts:[String]?
98
+
/// Indicates which sorting strategy to apply for the request. The value must match one of the labels defined in the
99
+
/// \"sortingStrategy\" mapping. For example, \"Price (asc)\", see Upsert Composition. At runtime, this label is
100
+
/// used to look up the corresponding index or replica configured in \"sortingStrategy\", and the query is executed
101
+
/// using that index instead of main's. In addition to \"sortingStrategy\", this parameter is also used to apply a
102
+
/// matching Composition Rule that contains a condition defined to trigger on \"sortBy\", see Composition Rules. If
103
+
/// no value is provided or an invalid value, no sorting strategy is applied.
104
+
publicvarsortBy:String?
98
105
/// Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events.
99
106
/// For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).
100
107
publicvaruserToken:String?
@@ -125,9 +132,10 @@ public struct CompositionParams: Codable, JSONEncodable {
0 commit comments