Using a different analyzer for each query and same index

Hi,

first of all I am a noob with elastic so bear with me.

I am interested to know if this scenario is possible:

A user posts some text , my app detects the language and index the text
with the spanish analyzer for example.
B user posts some text in english, my app detects it and indexex the text
with the english analyzer in the same field.

The search query also specifies the analyzer.

Is this possible or do I need a field for every language? that's not a very
elegant solution.

some other idea?

thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bdb5c51d-be3e-4155-bffe-3b6227e99a98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bump

On Wednesday, October 8, 2014 4:16:42 PM UTC+2, Aris Alexis wrote:

Hi,

first of all I am a noob with elastic so bear with me.

I am interested to know if this scenario is possible:

A user posts some text , my app detects the language and index the text
with the spanish analyzer for example.
B user posts some text in english, my app detects it and indexex the text
with the english analyzer in the same field.

The search query also specifies the analyzer.

Is this possible or do I need a field for every language? that's not a
very elegant solution.

some other idea?

thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/080acb42-a86c-4072-a0ee-f42ee44eef4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,

I think this page is useful for you.

2014-10-12 0:39 GMT+09:00 Aris Alexis snowboard789@gmail.com:

bump

On Wednesday, October 8, 2014 4:16:42 PM UTC+2, Aris Alexis wrote:

Hi,

first of all I am a noob with elastic so bear with me.

I am interested to know if this scenario is possible:

A user posts some text , my app detects the language and index the text
with the spanish analyzer for example.
B user posts some text in english, my app detects it and indexex the text
with the english analyzer in the same field.

The search query also specifies the analyzer.

Is this possible or do I need a field for every language? that's not a
very elegant solution.

some other idea?

thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/080acb42-a86c-4072-a0ee-f42ee44eef4a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/080acb42-a86c-4072-a0ee-f42ee44eef4a%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--

Jun Ohtani
blog : http://blog.johtani.info

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPW8A5yZJJFGtvD8_HEQ5PmScd_701gne-A%2BcwHnenc21t1Ofg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.