I have a question about the _analyze field
This seems pretty cool to handle documents of multiple languages on a
single index, by detecting first the document language.
However i often read that we should use the same analyzer for indexing and
But in the case of a search of a string text, how can ElasticSearch know
which search analyzer to use?
Should we handle that ourselves when building our query? (quite a pain)
Or perhaps ES is doing some magical stuff like applying all the analyzers
known for that field and creates automatically a boolean query with all
Please tell me
Btw is it possible to put the _analyzer field only for a specific field
instead of declaring it directly for a type?
For exemple if i know by statistics that my user is posting 80% of
documents in english, and 20% in french, i would like to have a multi_field
which define 3 subfields "untouched" "preferedLang1" and "preferedLang2"
Is it possible do do such a thing?