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.
1 2 3 $index->setSettings([ 'indexLanguages' => ['ja'] ]);