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 :
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:
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 ...).
using different analyzers in one document, which are extracted from the
document is not possible. However if you have one document per language,
you could use the _analyzer capability for this, see
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 :
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:
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 ...).
Thanks for your reply. I have already looked at the _analyzer capability,
but it doesn't help me. I will continue using the structure I described
above.
Loïc
Le lundi 5 mai 2014 13:21:30 UTC+2, Alexander Reelsen a écrit :
Hey,
using different analyzers in one document, which are extracted from the
document is not possible. However if you have one document per language,
you could use the _analyzer capability for this, see Elasticsearch Platform — Find real-time answers at scale | Elastic
Hope this helps...
--Alex
On Sat, May 3, 2014 at 8:58 AM, Loïc Wenkin <loic....@gmail.com<javascript:>
wrote:
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 :
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:
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 ...).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.