Yes it is possible if you apply exactly what is written in the guide: 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html

What query did you run? What is not working?

If you could gist a full example of what you are doing it could help a lot and 
save some time: See http://www.elasticsearch.org/help/

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 6 mars 2014 à 09:32:09, robin thakur ([email protected]) a écrit:


ok, I will try to explain
 I have this URL http://localhost:9200/productindex/_search?q=armani  on going 
to this I am getting this

{
  "took": 6,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 0.112474404,
    "hits": [
                       {
                       "description": "<p>Armani Code pour Femme 2010</p>",
                       "name": "Armani Code Femme EDP 75ml W",
                       }
             }
}

Is it possible to get this json having
 "description": "<p>Armani Code pour Femme 2010</p>",
            "name": "Armani Code Femme EDP 75ml W",

i am also using
{
"highlight" : {
        "fields" : {
            "content" : {"force_source" : true}
        }
    }
}
 in body, but it is not working.

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/08f279d1-88cd-4133-808c-833af301a5c8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.5318373d.836c40e.7bfa%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to