decompoundedAttributes setting specifies which attributes to decompound in your , and in which languages.
On the , decompounding applies when the index’s query language supports it.
Algolia provides a built-in segmentation dictionary for German, Dutch, Finnish, Swedish, Danish, and Norwegian.
You can customize each one in the Algolia dashboard.
Each Algolia uses one segmentation dictionary per language.
Your changes affect every index that has this query language and sets decompoundedAttributes.
Open a segmentation dictionary
The Words Segmentation tab is available only for languages that have a segmentation dictionary. For any other language, the tab stays turned off.- Go to the Algolia dashboard and select your Algolia .
- In the left sidebar, select Search.
- Go to the Dictionaries page.
- Select the language you want to customize.
- Select the Words Segmentation tab.
Inspect segmentation
- Open a segmentation dictionary.
- Search for a word.
- Under Algolia segmentation, see how the engine reads the word.
Create custom segmentation entries
Algolia may not split a compound word that contains a brand name or a proper noun, such as the Dutch “gyprocplaten” (drywall). Searches then match the whole word only, not “gyproc” or “platen”. To split a word yourself:- Open a segmentation dictionary.
- Search for the word.
- Under Algolia segmentation, select Edit.
- Select Split, then enter the parts.
- Select Save, then select Review and Save.
Turn off segmentation for words
Algolia may split a word that your catalog needs whole, such as the German brand “Volkswagen” into “volks” and “wagen”. To keep a word whole:- Open a segmentation dictionary.
- Search for the word.
- Under Algolia segmentation, select Edit.
- Select Keep as is.
- Select Save, then select Review and Save.
Delete custom segmentation entries
You can only delete your own segmentation entries. Algolia’s segmentation always remains, and your custom entry overrides it. To delete an entry:- Open a segmentation dictionary.
- Search for the word.
- Select Delete.
- Select Review and Save.
Upload and download customizations
Open a segmentation dictionary, then select Actions:- To upload your own list, select Upload your segmentations list.
- To export what you added, select Download your segmentations list as JSON or as CSV.
Upload format
language doesn’t match language, and the upload skips the rows it can’t match.
In CSV, put the parts in one quoted, comma-separated list.
To keep a word whole, give it one part equal to the word.
Manage segmentation programmatically
The dashboard isn’t the only way to customize a dictionary. Segmentation entries live in thecompounds dictionary.
- Algolia CLI: the
algolia dictionary entriescommands - API clients: save, search, delete, and clear dictionary entries
- Search API: add or delete dictionary entries, search dictionary entries