Skip to main content
  • Type: list<enum<string>>
  • Default: ["ignorePlurals", "singleWordSynonym"]
  • Scope: settings,search
The alternativesAsExact parameter defines which types of query word alternatives should be treated as exact matches by the Exact ranking criterion. By default, plural forms (with ignorePlurals) and single-word synonyms are considered exact. You can extend or limit this behavior based on your use case. For more information, see:

Options

ignorePlurals
Treats plural and inflected forms (enabled by ignorePlurals) as exact matches.
singleWordSynonym
Treats single-word synonyms (for example, "NY" = "NYC") as exact matches.
multiWordsSynonym
Treats multi-word synonyms (for example, "NY" = "New York") as exact matches.

Examples

Current API clients

IndexSettings settings = new IndexSettings();
settings.AlternativesAsExact = new List
{
    "ignorePlurals",
    "singleWordSynonym",
    "multiWordsSynonym",
};

index.SetSettings(settings);
IndexSettings settings = new IndexSettings();
settings.AlternativesAsExact = new List
{
    "ignorePlurals",
    "singleWordSynonym",
    "multiWordsSynonym",
};

index.SetSettings(settings);
I