Skip to content

Commit d688b2f

Browse files
algolia-botmillotp
andcommitted
fix(specs): move customRanking and keepDiacriticsOnCharacters to indexSettings [skip-bc] (generated)
algolia/api-clients-automation#4324 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 82e561c commit d688b2f

13 files changed

+114
-130
lines changed

src/main/scala/algoliasearch/recommend/BaseIndexSettings.scala

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,20 @@ import algoliasearch.recommend.SupportedLanguage._
138138
* @param maxFacetHits
139139
* Maximum number of facet values to return when [searching for facet
140140
* values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
141+
* @param keepDiacriticsOnCharacters
142+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
143+
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
144+
* diacritics.
145+
* @param customRanking
146+
* Attributes to use as [custom
147+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
148+
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
149+
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
150+
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
151+
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
152+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
153+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
154+
* of your first attributes, or the other attributes will never be applied.
141155
*/
142156
case class BaseIndexSettings(
143157
attributesForFaceting: Option[Seq[String]] = scala.None,
@@ -157,5 +171,7 @@ case class BaseIndexSettings(
157171
userData: Option[Any] = scala.None,
158172
customNormalization: Option[Map[String, Map[String, String]]] = scala.None,
159173
attributeForDistinct: Option[String] = scala.None,
160-
maxFacetHits: Option[Int] = scala.None
174+
maxFacetHits: Option[Int] = scala.None,
175+
keepDiacriticsOnCharacters: Option[String] = scala.None,
176+
customRanking: Option[Seq[String]] = scala.None
161177
)

src/main/scala/algoliasearch/recommend/FallbackParams.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ import algoliasearch.recommend.SupportedLanguage._
228228
* @param maxFacetHits
229229
* Maximum number of facet values to return when [searching for facet
230230
* values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
231+
* @param keepDiacriticsOnCharacters
232+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
233+
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
234+
* diacritics.
235+
* @param customRanking
236+
* Attributes to use as [custom
237+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
238+
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
239+
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
240+
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
241+
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
242+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
243+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
244+
* of your first attributes, or the other attributes will never be applied.
231245
* @param attributesToRetrieve
232246
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the
233247
* attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the
@@ -416,6 +430,8 @@ case class FallbackParams(
416430
customNormalization: Option[Map[String, Map[String, String]]] = scala.None,
417431
attributeForDistinct: Option[String] = scala.None,
418432
maxFacetHits: Option[Int] = scala.None,
433+
keepDiacriticsOnCharacters: Option[String] = scala.None,
434+
customRanking: Option[Seq[String]] = scala.None,
419435
attributesToRetrieve: Option[Seq[String]] = scala.None,
420436
ranking: Option[Seq[String]] = scala.None,
421437
relevancyStrictness: Option[Int] = scala.None,

src/main/scala/algoliasearch/recommend/RecommendIndexSettings.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,20 @@ import algoliasearch.recommend.SupportedLanguage._
143143
* @param maxFacetHits
144144
* Maximum number of facet values to return when [searching for facet
145145
* values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
146+
* @param keepDiacriticsOnCharacters
147+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
148+
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
149+
* diacritics.
150+
* @param customRanking
151+
* Attributes to use as [custom
152+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
153+
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
154+
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
155+
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
156+
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
157+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
158+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
159+
* of your first attributes, or the other attributes will never be applied.
146160
* @param attributesToRetrieve
147161
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the
148162
* attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the
@@ -302,6 +316,8 @@ case class RecommendIndexSettings(
302316
customNormalization: Option[Map[String, Map[String, String]]] = scala.None,
303317
attributeForDistinct: Option[String] = scala.None,
304318
maxFacetHits: Option[Int] = scala.None,
319+
keepDiacriticsOnCharacters: Option[String] = scala.None,
320+
customRanking: Option[Seq[String]] = scala.None,
305321
attributesToRetrieve: Option[Seq[String]] = scala.None,
306322
ranking: Option[Seq[String]] = scala.None,
307323
relevancyStrictness: Option[Int] = scala.None,

src/main/scala/algoliasearch/recommend/RecommendSearchParams.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ import algoliasearch.recommend.SupportedLanguage._
228228
* @param maxFacetHits
229229
* Maximum number of facet values to return when [searching for facet
230230
* values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
231+
* @param keepDiacriticsOnCharacters
232+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
233+
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
234+
* diacritics.
235+
* @param customRanking
236+
* Attributes to use as [custom
237+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
238+
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
239+
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
240+
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
241+
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
242+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
243+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
244+
* of your first attributes, or the other attributes will never be applied.
231245
* @param attributesToRetrieve
232246
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the
233247
* attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the
@@ -416,6 +430,8 @@ case class RecommendSearchParams(
416430
customNormalization: Option[Map[String, Map[String, String]]] = scala.None,
417431
attributeForDistinct: Option[String] = scala.None,
418432
maxFacetHits: Option[Int] = scala.None,
433+
keepDiacriticsOnCharacters: Option[String] = scala.None,
434+
customRanking: Option[Seq[String]] = scala.None,
419435
attributesToRetrieve: Option[Seq[String]] = scala.None,
420436
ranking: Option[Seq[String]] = scala.None,
421437
relevancyStrictness: Option[Int] = scala.None,

src/main/scala/algoliasearch/search/BaseIndexSettings.scala

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,20 @@ import algoliasearch.search.SupportedLanguage._
142142
* @param maxFacetHits
143143
* Maximum number of facet values to return when [searching for facet
144144
* values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
145+
* @param keepDiacriticsOnCharacters
146+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
147+
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
148+
* diacritics.
149+
* @param customRanking
150+
* Attributes to use as [custom
151+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
152+
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
153+
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
154+
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
155+
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
156+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
157+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
158+
* of your first attributes, or the other attributes will never be applied.
145159
*/
146160
case class BaseIndexSettings(
147161
attributesForFaceting: Option[Seq[String]] = scala.None,
@@ -161,5 +175,7 @@ case class BaseIndexSettings(
161175
userData: Option[Any] = scala.None,
162176
customNormalization: Option[Map[String, Map[String, String]]] = scala.None,
163177
attributeForDistinct: Option[String] = scala.None,
164-
maxFacetHits: Option[Int] = scala.None
178+
maxFacetHits: Option[Int] = scala.None,
179+
keepDiacriticsOnCharacters: Option[String] = scala.None,
180+
customRanking: Option[Seq[String]] = scala.None
165181
)

src/main/scala/algoliasearch/search/BrowseParamsObject.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,6 @@ import algoliasearch.search.SupportedLanguage._
150150
* values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute,
151151
* in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by
152152
* [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
153-
* @param customRanking
154-
* Attributes to use as [custom
155-
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
156-
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
157-
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
158-
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
159-
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
160-
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
161-
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
162-
* of your first attributes, or the other attributes will never be applied.
163153
* @param relevancyStrictness
164154
* Relevancy threshold below which less relevant results aren't included in the results. You can only set
165155
* `relevancyStrictness` on [virtual replica
@@ -205,10 +195,6 @@ import algoliasearch.search.SupportedLanguage._
205195
* \- Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of
206196
* text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms
207197
* if your attributes have intentional unusual spellings that might look like typos.
208-
* @param keepDiacriticsOnCharacters
209-
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
210-
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
211-
* diacritics.
212198
* @param queryLanguages
213199
* Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection
214200
* dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
@@ -328,7 +314,6 @@ case class BrowseParamsObject(
328314
enableABTest: Option[Boolean] = scala.None,
329315
attributesToRetrieve: Option[Seq[String]] = scala.None,
330316
ranking: Option[Seq[String]] = scala.None,
331-
customRanking: Option[Seq[String]] = scala.None,
332317
relevancyStrictness: Option[Int] = scala.None,
333318
attributesToHighlight: Option[Seq[String]] = scala.None,
334319
attributesToSnippet: Option[Seq[String]] = scala.None,
@@ -344,7 +329,6 @@ case class BrowseParamsObject(
344329
disableTypoToleranceOnAttributes: Option[Seq[String]] = scala.None,
345330
ignorePlurals: Option[IgnorePlurals] = scala.None,
346331
removeStopWords: Option[RemoveStopWords] = scala.None,
347-
keepDiacriticsOnCharacters: Option[String] = scala.None,
348332
queryLanguages: Option[Seq[SupportedLanguage]] = scala.None,
349333
decompoundQuery: Option[Boolean] = scala.None,
350334
enableRules: Option[Boolean] = scala.None,

src/main/scala/algoliasearch/search/ConsequenceParams.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,6 @@ import algoliasearch.search.SupportedLanguage._
148148
* values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute,
149149
* in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by
150150
* [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
151-
* @param customRanking
152-
* Attributes to use as [custom
153-
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are
154-
* case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are
155-
* equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean
156-
* attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by
157-
* the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
158-
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
159-
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
160-
* of your first attributes, or the other attributes will never be applied.
161151
* @param relevancyStrictness
162152
* Relevancy threshold below which less relevant results aren't included in the results. You can only set
163153
* `relevancyStrictness` on [virtual replica
@@ -203,10 +193,6 @@ import algoliasearch.search.SupportedLanguage._
203193
* \- Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of
204194
* text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms
205195
* if your attributes have intentional unusual spellings that might look like typos.
206-
* @param keepDiacriticsOnCharacters
207-
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For
208-
* example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their
209-
* diacritics.
210196
* @param queryLanguages
211197
* Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection
212198
* dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals`
@@ -322,7 +308,6 @@ case class ConsequenceParams(
322308
enableABTest: Option[Boolean] = scala.None,
323309
attributesToRetrieve: Option[Seq[String]] = scala.None,
324310
ranking: Option[Seq[String]] = scala.None,
325-
customRanking: Option[Seq[String]] = scala.None,
326311
relevancyStrictness: Option[Int] = scala.None,
327312
attributesToHighlight: Option[Seq[String]] = scala.None,
328313
attributesToSnippet: Option[Seq[String]] = scala.None,
@@ -338,7 +323,6 @@ case class ConsequenceParams(
338323
disableTypoToleranceOnAttributes: Option[Seq[String]] = scala.None,
339324
ignorePlurals: Option[IgnorePlurals] = scala.None,
340325
removeStopWords: Option[RemoveStopWords] = scala.None,
341-
keepDiacriticsOnCharacters: Option[String] = scala.None,
342326
queryLanguages: Option[Seq[SupportedLanguage]] = scala.None,
343327
decompoundQuery: Option[Boolean] = scala.None,
344328
enableRules: Option[Boolean] = scala.None,

0 commit comments

Comments
 (0)