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 intoueifü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'
]
]
]);