Highliting the field

hi.. i am trying to highlight the comment but its getting highlight of my "comment" field as well as "appstore_name" field content also.. this is my query:

curl -XGET 'localhost:9200/gold.reviews/_search?pretty' -d'{
"query":{
"bool":{
"must":[{"match":{"appstore_name":{"query":"apple app store","operator":"and"}}},{"range":{"date":{"from":"2013-11-01","to":"2014-11-20"}}}],
"must":[{"match":{"comment":"wifi"}},{"match":{"title":"wifi"}}],"minimum_should_match":1}},"highlight":{"fields":{"comment":{}}}}'

output:

"hits" : {
"total" : 2,
"max_score" : 3.236876,
"hits" : [ {
"_index" : "gold.reviews",
"_type" : "string",
"_id" : "1364990543",
"_score" : 3.236876,
"_source":{"comment": "The gold app is not connecting via home wifi and working on away from home mode... Plz help", "rating": 1, "title": "Not connecting to home wifi", "appstore_name": "Apple App Store", "country_name": "India", "version": "1.5.0", "user": "Tanuj1992", "time": "00:00:00", "date": "2014-08-26", "iso_code": "IN", "application_name": "gold"},
"highlight" : {
"comment" : [ "The gold app is not connecting via home wifi and working on away from home mode... Plz help" ]

i dont want to highlight "app" word..i want to highlight only "wifi".. help me out of this asap..

Highlighting extracts terms from the query and your query contains the
words apple app store. You can fix this by providing a highlight_query or
by setting another setting who's name I've forgotten. I believe it is
require_field_match or something.
On Nov 26, 2014 6:27 AM, "pavan.530530" pavan.530530@gmail.com wrote:

hi.. i am trying to highlight the comment but its getting highlight of my
"comment" field as well as "appstore_name" field content also.. this is my
query:

curl -XGET 'localhost:9200/gold.reviews/_search?pretty' -d'{
"query":{
"bool":{
"must":[{"match":{"appstore_name":{"query":"apple app

store","operator":"and"}}},{"range":{"date":{"from":"2013-11-01","to":"2014-11-20"}}}],

"must":[{"match":{"comment":"wifi"}},{"match":{"title":"wifi"}}],"minimum_should_match":1}},"highlight":{"fields":{"comment":{}}}}'

output:

"hits" : {
"total" : 2,
"max_score" : 3.236876,
"hits" : [ {
"_index" : "gold.reviews",
"_type" : "string",
"_id" : "1364990543",
"_score" : 3.236876,
"_source":{"comment": "The gold app is not connecting via home wifi
and working on away from home mode... Plz help", "rating": 1, "title": "Not
connecting to home wifi", "appstore_name": "Apple App Store",
"country_name": "India", "version": "1.5.0", "user": "Tanuj1992", "time":
"00:00:00", "date": "2014-08-26", "iso_code": "IN", "application_name":
"gold"},
"highlight" : {
"comment" : [ "The gold app is not connecting via home
wifi and working on away from home mode... Plz help" ]

i dont want to highlight "app" word..i want to highlight only "wifi"..
help
me out of this asap..

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/highliting-the-field-tp4066746.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--
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/1416924570489-4066746.post%40n3.nabble.com
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAPmjWd1D79VA%3DeeJdi85e-4eV%3DgJWk9203a85rzYXv0QzG-PFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.