Re: Mult-language searchable in one field

2014-05-09 Thread Martin
and I cant' use the _all field because of own scoring. -- 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+unsubscr...@googlegroups.com. To view this

Re: Mult-language searchable in one field

2014-05-09 Thread Itamar Syn-Hershko
And then what analyzer you will use for that? It is doable, but I'd strongly suggest against it unless you know what you are doing: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_multi_field_2 -- Itamar Syn-Hershko http://code972.com |

Re: Mult-language searchable in one field

2014-05-09 Thread Martin
Thank you - I thought may be there is another type like object-type which would provide it. Actually it should be a type like the array-type but with fields you could analyse separately. There would be different analysers for each language (especially because of stemming). -- You received

Re: Mult-language searchable in one field

2014-05-09 Thread Martin
OK - I thought I could leave all my queries and add an additional filter if the item is available in that language. I'll watch your talk! -- You received this message because you are subscribed to the Google Groups elasticsearch group. To unsubscribe from this group and stop receiving emails

Re: Mult-language searchable in one field

2014-05-09 Thread joergpra...@gmail.com
You can index two fields into a third common field with index_name in combination with multi_field. This works like a custom _all field. Jörg On Fri, May 9, 2014 at 3:08 PM, Martin martin.konr...@echtzeiten.comwrote: OK - I thought I could leave all my queries and add an additional filter

Re: Mult-language searchable in one field

2014-05-09 Thread Martin
ah wow - that's cool. I just came across your http://jprante.github.io/lessons/2012/05/11/ISBN-search-with-Elasticsearch.html which explains it in detail. That's pretty close to what I want but I just found a new problem: There should be a highlighting of the found results - so I guess I'll

Re: Mult-language searchable in one field

2014-05-09 Thread joergpra...@gmail.com
Elasticsearch has improved ithe index_name with the copy_to mechanism. I have set up a gist to demonstrate multilingual highlighting, maybe it is useful. https://gist.github.com/jprante/9f7523bb59ea654a3931 Jörg On Fri, May 9, 2014 at 4:19 PM, Martin martin.konr...@echtzeiten.comwrote: ah