Hello everybody,

I was just wondering if it could be possible to use different analyzers for 
a field which is present in different nested elements. To be more clear, 
this is what I would like to do :

Imagine I have this kind of structure :

{
a: [
{
text: blabla,
language: fr
},
{
text: toto,
language: en
}
]
}

What I would like to do is using french analyzer for text with "language: 
fr", and english (or standard) analyzer for texy with "language: en". From 
what I read, it's not possible, but I would like to know if someone have 
found a solution to do this. What I am doing in order to do this is using a 
structure like this:

{
a: {
fr: {
text: blabla
},
en: {
text: toto
}
}
}

Using this, I can specify analyzers with the full path, but it could be 
great if I can specify analyzers as explained in the first structure (using 
script, or a kind of conditionnal analyzer or ...).

Any help would be appreciated :)

Regards,
Loïc

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/5d4ac492-bf17-40af-a4c3-c99696f19ad3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to