Language Analyzer single index

language analyzers https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html
Can I have multiple language analyzer for the single index where all my articles are in single index with multiple locales.

Yep!

You can define multiple analyzers for a single index. However, a field can only have a single analyzer. So if you want multiple locales, you'll either need multiple fields (foo_english, foo_german, etc) or use Multifields

Thanks ployfractal,

I have a single meta field called locale in the index which differentiates the content from en_US , ja_JP..etc
locale = enUS, or ja_JP..etc you mean to say i should have something like below.

englishLocale field for english document
japaneseLocale field for japanese document. and so on?

which is described here : https://www.elastic.co/guide/en/elasticsearch/guide/current/mixed-lang-fields.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.