Skip to main content

Documentation Index

Fetch the complete documentation index at: https://algolia.com/llms.txt

Use this file to discover all available pages before exploring further.

The 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" (using u + combining ◌̈) won’t be split, but "Gartenstühle" (single ü character) will be.
  • To control decompounding for individual attributes, see decompoundedAttributes.

Examples

Enable splitting compound words by default

Current API clients

var response = await client.SetSettingsAsync(
  "INDEX_NAME",
  new IndexSettings { DecompoundQuery = true }
);
IndexSettings settings = new IndexSettings
{
  DecompoundQuery = true
};

index.SetSettings(settings);

// Asynchronous
await index.SetSettings(settings);

Current API clients

var response = await client.SearchSingleIndexAsync<Hit>(
  "INDEX_NAME",
  new SearchParams(new SearchParamsObject { Query = "query", DecompoundQuery = true })
);
var result = index.Search(new Query("query string")
{
  DecoumpoundQuery = true
});
Last modified on March 16, 2026