Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public fun SearchForHits.Companion.from(
enableABTest = searchParamsObject.enableABTest,
attributesToRetrieve = searchParamsObject.attributesToRetrieve,
ranking = searchParamsObject.ranking,
customRanking = searchParamsObject.customRanking,
relevancyStrictness = searchParamsObject.relevancyStrictness,
attributesToHighlight = searchParamsObject.attributesToHighlight,
attributesToSnippet = searchParamsObject.attributesToSnippet,
Expand All @@ -65,7 +64,6 @@ public fun SearchForHits.Companion.from(
disableTypoToleranceOnAttributes = searchParamsObject.disableTypoToleranceOnAttributes,
ignorePlurals = searchParamsObject.ignorePlurals,
removeStopWords = searchParamsObject.removeStopWords,
keepDiacriticsOnCharacters = searchParamsObject.keepDiacriticsOnCharacters,
queryLanguages = searchParamsObject.queryLanguages,
decompoundQuery = searchParamsObject.decompoundQuery,
enableRules = searchParamsObject.enableRules,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public extension SearchForHits {
self.enableABTest = searchParamsObject.enableABTest
self.attributesToRetrieve = searchParamsObject.attributesToRetrieve
self.ranking = searchParamsObject.ranking
self.customRanking = searchParamsObject.customRanking
self.relevancyStrictness = searchParamsObject.relevancyStrictness
self.attributesToHighlight = searchParamsObject.attributesToHighlight
self.attributesToSnippet = searchParamsObject.attributesToSnippet
Expand All @@ -68,7 +67,6 @@ public extension SearchForHits {
self.disableTypoToleranceOnAttributes = searchParamsObject.disableTypoToleranceOnAttributes
self.ignorePlurals = searchParamsObject.ignorePlurals
self.removeStopWords = searchParamsObject.removeStopWords
self.keepDiacriticsOnCharacters = searchParamsObject.keepDiacriticsOnCharacters
self.queryLanguages = searchParamsObject.queryLanguages
self.decompoundQuery = searchParamsObject.decompoundQuery
self.enableRules = searchParamsObject.enableRules
Expand Down Expand Up @@ -139,7 +137,6 @@ public extension SearchForFacets {
self.enableABTest = searchParamsObject.enableABTest
self.attributesToRetrieve = searchParamsObject.attributesToRetrieve
self.ranking = searchParamsObject.ranking
self.customRanking = searchParamsObject.customRanking
self.relevancyStrictness = searchParamsObject.relevancyStrictness
self.attributesToHighlight = searchParamsObject.attributesToHighlight
self.attributesToSnippet = searchParamsObject.attributesToSnippet
Expand All @@ -155,7 +152,6 @@ public extension SearchForFacets {
self.disableTypoToleranceOnAttributes = searchParamsObject.disableTypoToleranceOnAttributes
self.ignorePlurals = searchParamsObject.ignorePlurals
self.removeStopWords = searchParamsObject.removeStopWords
self.keepDiacriticsOnCharacters = searchParamsObject.keepDiacriticsOnCharacters
self.queryLanguages = searchParamsObject.queryLanguages
self.decompoundQuery = searchParamsObject.decompoundQuery
self.enableRules = searchParamsObject.enableRules
Expand Down
84 changes: 42 additions & 42 deletions specs/common/schemas/IndexSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,48 @@ baseIndexSettings:
type: string
maxFacetHits:
$ref: '#/maxFacetHits'
keepDiacriticsOnCharacters:
type: string
example: øé
description: |
Characters for which diacritics should be preserved.

By default, Algolia removes diacritics from letters.
For example, `é` becomes `e`. If this causes issues in your search,
you can specify characters that should keep their diacritics.
default: ''
x-categories:
- Languages
customRanking:
type: array
items:
type: string
example:
- desc(popularity)
- asc(price)
description: |
Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
Attribute names are case-sensitive.

The custom ranking attributes decide which items are shown first if the other ranking criteria are equal.

Records with missing values for your selected custom ranking attributes are always sorted last.
Boolean attributes are sorted based on their alphabetical order.

**Modifiers**

- `asc("ATTRIBUTE")`.
Sort the index by the values of an attribute, in ascending order.

- `desc("ATTRIBUTE")`.
Sort the index by the values of an attribute, in descending order.

If you use two or more custom ranking attributes,
[reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes,
or the other attributes will never be applied.
default: []
x-categories:
- Ranking

indexSettingsAsSearchParams:
type: object
Expand Down Expand Up @@ -343,36 +385,6 @@ indexSettingsAsSearchParams:
- custom
x-categories:
- Ranking
customRanking:
type: array
items:
type: string
example:
- desc(popularity)
- asc(price)
description: |
Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
Attribute names are case-sensitive.

The custom ranking attributes decide which items are shown first if the other ranking criteria are equal.

Records with missing values for your selected custom ranking attributes are always sorted last.
Boolean attributes are sorted based on their alphabetical order.

**Modifiers**

- `asc("ATTRIBUTE")`.
Sort the index by the values of an attribute, in ascending order.

- `desc("ATTRIBUTE")`.
Sort the index by the values of an attribute, in descending order.

If you use two or more custom ranking attributes,
[reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes,
or the other attributes will never be applied.
default: []
x-categories:
- Ranking
relevancyStrictness:
type: integer
example: 90
Expand Down Expand Up @@ -497,18 +509,6 @@ indexSettingsAsSearchParams:
$ref: '#/ignorePlurals'
removeStopWords:
$ref: '#/removeStopWords'
keepDiacriticsOnCharacters:
type: string
example: øé
description: |
Characters for which diacritics should be preserved.

By default, Algolia removes diacritics from letters.
For example, `é` becomes `e`. If this causes issues in your search,
you can specify characters that should keep their diacritics.
default: ''
x-categories:
- Languages
queryLanguages:
type: array
items:
Expand Down
8 changes: 0 additions & 8 deletions tests/CTS/requests/search/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,6 @@
""
],
"clickAnalytics": true,
"customRanking": [
""
],
"decompoundQuery": true,
"disableExactOnAttributes": [
""
Expand Down Expand Up @@ -886,7 +883,6 @@
2.0104
]
],
"keepDiacriticsOnCharacters": "",
"length": 1,
"maxValuesPerFacet": 0,
"minProximity": 1,
Expand Down Expand Up @@ -999,9 +995,6 @@
""
],
"clickAnalytics": true,
"customRanking": [
""
],
"decompoundQuery": true,
"disableExactOnAttributes": [
""
Expand Down Expand Up @@ -1061,7 +1054,6 @@
2.0104
]
],
"keepDiacriticsOnCharacters": "",
"length": 1,
"maxValuesPerFacet": 0,
"minProximity": 1,
Expand Down