Skip to content

Commit

Permalink
feat(ts): add decompoundQuery (#1240)
Browse files Browse the repository at this point in the history
* feat(ts): add decompoundQuery

A new setting and parameter as an add-on to [decompoundedAttributes](https://www.algolia.com/doc/api-reference/api-parameters/decompoundedAttributes/?client=javascript)

* unrelated to the setting!
  • Loading branch information
Haroenv authored Jan 15, 2021
1 parent 608f2ec commit 446c9a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/client-search/src/types/SearchOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,12 @@ export type SearchOptions = {
* Engine's default: true
*/
readonly enableABTest?: boolean;

/**
* Enable word segmentation (also called decompounding) at query time for
* compatible languages. For example, this turns the Dutch query
* "spaanplaatbehang" into "spaan plaat behang" to retrieve more relevant
* results.
*/
readonly decompoundQuery?: boolean;
};
8 changes: 8 additions & 0 deletions packages/client-search/src/types/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,12 @@ export type Settings = {
* Custom userData that could be added to the Settings.
*/
readonly userData?: any;

/**
* Enable word segmentation (also called decompounding) at query time for
* compatible languages. For example, this turns the Dutch query
* "spaanplaatbehang" into "spaan plaat behang" to retrieve more relevant
* results.
*/
readonly decompoundQuery?: boolean;
};

0 comments on commit 446c9a0

Please sign in to comment.