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 <em>app</em> is not connecting via home
<em>wifi</em> 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+unsubscr...@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.

Reply via email to