@@ -102,11 +102,6 @@ import algoliasearch.composition.SupportedLanguage._
102102 * Page of search results to retrieve.
103103 * @param query
104104 * Search query.
105- * @param relevancyStrictness
106- * Relevancy threshold below which less relevant results aren't included in the results You can only set
107- * `relevancyStrictness` on [virtual replica
108- * indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).
109- * Use this setting to strike a balance between the relevance and number of returned results.
110105 * @param queryLanguages
111106 * Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection
112107 * dictionaries This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
@@ -118,10 +113,22 @@ import algoliasearch.composition.SupportedLanguage._
118113 * or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to
119114 * unexpected search results. For more information, see [Language-specific
120115 * configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations).
116+ * @param relevancyStrictness
117+ * Relevancy threshold below which less relevant results aren't included in the results You can only set
118+ * `relevancyStrictness` on [virtual replica
119+ * indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).
120+ * Use this setting to strike a balance between the relevance and number of returned results.
121121 * @param ruleContexts
122122 * Assigns a rule context to the run query [Rule
123123 * contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context)
124124 * are strings that you can use to trigger matching rules.
125+ * @param sortBy
126+ * Indicates which sorting strategy to apply for the request. The value must match one of the labels defined in the
127+ * \"sortingStrategy\" mapping. For example, \"Price (asc)\", see Upsert Composition. At runtime, this label is used
128+ * to look up the corresponding index or replica configured in \"sortingStrategy\", and the query is executed using
129+ * that index instead of main's. In addition to \"sortingStrategy\", this parameter is also used to apply a matching
130+ * Composition Rule that contains a condition defined to trigger on \"sortBy\", see Composition Rules. If no value is
131+ * provided or an invalid value, no sorting strategy is applied.
125132 * @param userToken
126133 * Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For
127134 * more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).
@@ -152,8 +159,9 @@ case class Params(
152159 optionalFilters : Option [OptionalFilters ] = scala.None ,
153160 page : Option [Int ] = scala.None ,
154161 query : Option [String ] = scala.None ,
155- relevancyStrictness : Option [Int ] = scala.None ,
156162 queryLanguages : Option [Seq [SupportedLanguage ]] = scala.None ,
163+ relevancyStrictness : Option [Int ] = scala.None ,
157164 ruleContexts : Option [Seq [String ]] = scala.None ,
165+ sortBy : Option [String ] = scala.None ,
158166 userToken : Option [String ] = scala.None
159167)
0 commit comments