indexLanguages
[]
'indexLanguages' => ['language ISO code', ...]
Can be used in these methods:
setSettings
set_settings
setSettings
set_settings
setSettings
setSettings
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. See the list of supported languages for the corresponding ISO codes
You can configure the index languages in the Algolia dashboard under Search > Index > Configuration > Language > Index Languages. You can also use the set-settings
method of the API clients to configure the indexLanguages
parameter.
Examples
Set an index language for tokenization and normalization
For example, to set the index language to Japanese (‘ja’):
1
2
3
$index->setSettings([
'indexLanguages' => ['ja']
]);