About this parameter
List of characters that the engine shouldn’t automatically normalize.
By default, the Algolia search engine normalizes all characters to their lowercase counterpart, and strips them from their diacritics.
"て", and so on.
This default behavior can be an issue for certain languages. This setting lets you disable automatic normalization on a given set of characters.
- The setting only accepts lowercase characters, but also applies to their uppercase counterpart. For example,
"Ø"is an invalid value for this setting, but specifying
"ø"prevents the normalization of both
- The setting only accepts characters that would be transformed otherwise. For example,
"o"is considered invalid because it doesn’t have any diacritic.
Set the characters for which diacritics should be preserved
1 2 3 $index->setSettings([ 'keepDiacriticsOnCharacters' => 'øé' ]);