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 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.


Set an index language for tokenization and normalization

For example, to set the index language to Japanese (‘ja’):

    'indexLanguages' => ['ja']
Did you find this page helpful?