customNormalization
{}
'customNormalization' => [ 'default' => [ 'ä' => 'ae' ] ]
Can be used in these methods:
setSettings
set_settings
setSettings
set_settings
setSettings
setSettings
SetSettings
setSettings
SetSettings
setSettings
About this parameter
Override the default normalization handled by the engine.
This setting lets you override the engine’s default normalization by providing a custom normalization.
Usage notes
- The input of a custom normalization must contain a single character.
- The output of a custom normalization must have at most two characters.
- This setting won’t work for records or queries that contain non-spacing mark Unicode characters. For example,
ü
cannot be custom-normalized intoue
ifü
is actually made ofu
(U+0075) +◌̈
(U+0308). You can normalizeü
if it’s a single character (U+00FC).
Examples
Set a custom normalization
1
2
3
4
5
6
7
$index->setSettings([
'customNormalization' => [
'default' => [
'ä' => 'ae'
]
]
]);