API Reference / API Parameters / indexLanguages

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.

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']
]);

Did you find this page helpful?