Skip to main content
The keepDiacriticsOnCharacters parameter lets you preserve specific characters with diacritics. By default, Algolia removes diacritics: "é" becomes "e", "ø" becomes "o", and "で" becomes "て". Use this setting to protect selected characters from being transformed.

Usage

  • Only lowercase characters are accepted. For example, to preserve both "ø" and "Ø", include only "ø".
  • Only characters that are normally transformed are allowed. Characters without diacritics, such as "o", are not valid.
  • This does not affect characters built from combining marks. For example:
    • ü (U+00FC) can be preserved.
    • ü (U+0075 + U+0308) will still be normalized.

Example

Current API clients

IndexSettings settings = new IndexSettings();
settings.KeepDiacriticsOnCharacters = "øé";

index.SetSettings(settings);
IndexSettings settings = new IndexSettings();
settings.KeepDiacriticsOnCharacters = "øé";

index.SetSettings(settings);
I