Skip to content

Commit 446c9a0

Browse files
authored
feat(ts): add decompoundQuery (#1240)
* 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!
1 parent 608f2ec commit 446c9a0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/client-search/src/types/SearchOptions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,12 @@ export type SearchOptions = {
334334
* Engine's default: true
335335
*/
336336
readonly enableABTest?: boolean;
337+
338+
/**
339+
* Enable word segmentation (also called decompounding) at query time for
340+
* compatible languages. For example, this turns the Dutch query
341+
* "spaanplaatbehang" into "spaan plaat behang" to retrieve more relevant
342+
* results.
343+
*/
344+
readonly decompoundQuery?: boolean;
337345
};

packages/client-search/src/types/Settings.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,12 @@ export type Settings = {
283283
* Custom userData that could be added to the Settings.
284284
*/
285285
readonly userData?: any;
286+
287+
/**
288+
* Enable word segmentation (also called decompounding) at query time for
289+
* compatible languages. For example, this turns the Dutch query
290+
* "spaanplaatbehang" into "spaan plaat behang" to retrieve more relevant
291+
* results.
292+
*/
293+
readonly decompoundQuery?: boolean;
286294
};

0 commit comments

Comments
 (0)