keepDiacriticsOnCharacters
""
'keepDiacriticsOnCharacters' => 'øé'
Can be used in these methods:
setSettings
set_settings
setSettings
set_settings
setSettings
setSettings
setSettingsAsync
SetSettings
setSettings
SetSettings
setSettings
About this parameter
Characters that should not be automatically normalized by the search engine.
By default, the Algolia search engine is normalizing characters to transform them to their lowercase counterpart
and strip them from their diacritics. As an example: é
becomes e
, ø
becomes o
, で
becomes て
, etc.
This default behavior being an issue with several languages, this setting allows one to disable the automatic
normalization on a given set of characters.
Usage notes:
-
The setting only accepts lowercase characters, but also apply to their uppercase counterpart; for example,
Ø
is considered invalid, but specifyingø
will prevent bothø
andØ
to be normalized too
. -
The setting only accepts characters that would be transformed otherwise; for example,
o
is considered invalid.
Examples
Set the characters for which diacritics should be preserved
1
2
3
$index->setSettings([
'keepDiacriticsOnCharacters' => 'øé'
]);