indexLanguages
[]
'indexLanguages' => ['language ISO code', ...]
Can be used in these methods:
setSettings
set_settings
setSettings
set_settings
setSettings
setSettings
setSettingsAsync
SetSettings
setSettings
SetSettings
setSettings
About this parameter
Sets the languages at the index level for language-specific processing such as tokenization and normalization.
At indexing time, the parameter sets the dictionary and algorithms for word-detecting in the provided language. At the moment, the only supported language is Japanese. Setting “ja” enables typo-tolerance in Japanese and improves the relevance when indexing documents with long attributes.
Examples
Set an index language for tokenization and normalization
In this example, we set Japanese (‘ja’) index language.
1
2
3
$index->setSettings([
'indexLanguages' => ['ja']
]);