Restrict alternativesAsExact to specific values

This commit is contained in:
Kai Eichinger
2018-10-30 09:46:46 +01:00
parent 5a0ef8ba0e
commit fbc914d46d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ let _algoliaQueryParameters: QueryParameters = {
removeStopWords: [''],
disableExactOnAttributes: [''],
exactOnSingleWordQuery: 'attribute',
alternativesAsExact: [],
alternativesAsExact: ["ignorePlurals"],
distinct: 0,
getRankingInfo: false,
numericAttributesToIndex: [''],
+1 -1
View File
@@ -1373,7 +1373,7 @@ declare namespace algoliasearch {
* 'multiWordsSynonym': multiple-words synonym
* https://www.algolia.com/doc/api-reference/api-parameters/alternativesAsExact/
*/
alternativesAsExact?: string[];
alternativesAsExact?: Array<"ignorePlurals"|"singleWordSynonym"|"multiWordsSynonym">;
/**
* If set to 1, enables the distinct feature, disabled by default, if the attributeForDistinct index setting is set.
* https://www.algolia.com/doc/api-reference/api-parameters/distinct/
+1 -1
View File
@@ -452,7 +452,7 @@ declare namespace algoliasearch {
* 'multiWordsSynonym': multiple-words synonym
* https://www.algolia.com/doc/api-reference/api-parameters/alternativesAsExact/
*/
alternativesAsExact?: string[];
alternativesAsExact?: Array<"ignorePlurals"|"singleWordSynonym"|"multiWordsSynonym">;
/**
* If set to 1, enables the distinct feature, disabled by default, if the attributeForDistinct index setting is set.
* https://www.algolia.com/doc/api-reference/api-parameters/distinct/