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


Set an index language for tokenization and normalization

In this example, we set Japanese (‘ja’) index language.

    'indexLanguages' => ['ja']

Did you find this page helpful?