Merge pull request #25867 from algolia/feat/algolia-settings

fix(algoliasearch): camelCase & placeholders
This commit is contained in:
Ron Buckton
2018-05-18 14:10:14 -07:00
committed by GitHub
2 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ let _algoliaIndexSettings: IndexSettings = {
allowCompressionOfIntegerArray: false,
altCorrections: [{}],
minProximity: 0,
placeholders: '',
placeholders: { '': [''] },
camelCaseAttributes: [''],
};
let _algoliaQueryParameters: QueryParameters = {
+10 -2
View File
@@ -1759,10 +1759,18 @@ declare namespace algoliasearch {
minProximity?: number;
/**
* This is an advanced use-case to define a token substitutable by a list of words without having the original token searchable
* default: ''
* default: {}
* https://github.com/algolia/algoliasearch-client-js#placeholders
*/
placeholders?: any;
placeholders?: {
[name: string]: string[],
};
/**
* List of attributes on which to do a decomposition of camel case words.
*
https://www.algolia.com/doc/api-reference/api-parameters/camelCaseAttributes/
*/
camelCaseAttributes?: string[];
}
interface Response {