Re: strange highlight result, can anyone explain it?

2014-08-11 Thread Ivan Ji
For people that face the same problems, it's because the analyzers used in highlight is included all the ones of the fields in the query if you don't turn require_field_match to true. FYI. Ivan Ji於 2014年8月5日星期二UTC+8下午8時08分31秒寫道: > > The query command I used is as > > {'multi_match': {'fields':

Re: strange highlight result, can anyone explain it?

2014-08-05 Thread Ivan Ji
The query command I used is as {'multi_match': {'fields': ['_all', 'name', 'group.*'], > 'operator': 'and', > 'query': 'Adobe'}} I doubt the problem might be because the various analyzers of the "group.*". What is the analyzer to be used during the highlight? Ivan Ivan Ji於 2014年8月5日星期二U

strange highlight result, can anyone explain it?

2014-08-05 Thread Ivan Ji
Hi all, I am using highlight function in ES 1.0.1. I found a very strange situation as follow: I want to highlight the field "group.* " which is the inside a dictionary, whose mapping is {"properties": { > "group": > { "type": "object", > "dynamic": false, > "include_in_all":