Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ts): add decompoundQuery #1240

Merged
merged 2 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
* languages that have it enabled using "decompoundedAttributes". For example,
Haroenv marked this conversation as resolved.
Show resolved Hide resolved
* this turns the query "spaanplaatbehang" (Dutch) 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
* languages that have it enabled using "decompoundedAttributes". For example,
Haroenv marked this conversation as resolved.
Show resolved Hide resolved
* this turns the query "spaanplaatbehang" (Dutch) into "spaan plaat behang"
* to retrieve more relevant results.
*/
readonly decompoundQuery?: boolean;
};