API Reference / API Parameters / indexLanguages
Type: list of strings
Engine default: []
Parameter syntax
'indexLanguages' => ['language ISO code', ...]

Can be used in these methods:

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 to refer to the corresponding ISO codes that you can use.

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']
]);
Did you find this page helpful?