- Type:
boolean
- Default:
true
- Scope:
settings,search
decompoundQuery
parameter controls splitting compound words in the query into their component parts.
Decompounding is available for these queryLanguages
: German, Dutch, Finnish, Danish, Swedish, and Norwegian.
Usage
-
If
true
(default), compound words are split into multiple parts to improve recall. For example, the Dutch query"schoolboeken"
(school books) will match"school"
,"boeken"
, and"schoolboeken"
. -
If
false
, compound words are matched as-is.
This is useful when you want to preserve precise matches for product names, legal terms, or brand names.
For example,"gartenstühle"
(garden chairs in German) would only match"gartenstühle"
. -
Decompounding doesn’t apply to decomposed Unicode characters with combining marks.
For example,
"Gartenstühle"
(usingu
+ combining◌̈
) will not be split, but"Gartenstühle"
(singleü
character) will be. -
To control decompounding for individual attributes, see
decompoundedAttributes
.