Hey,

please see
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html

You can just add a 'highlight' field to your JSON document, which specifies
the fields to highlight on. Also, dont use explain in production, but only
for debug purposes.


--Alex


On Tue, Feb 11, 2014 at 5:56 AM, Navneet Mathpal <navneetmathpa...@gmail.com
> wrote:

> Hi ,
>
> how to highlight the matched word in elastic search if i am  firing a
> query like
>
> {
>   "explain": true,
>   "query": {
>     "match": {
>       "name": "age of kamal"
>     }
>   }
> }
>
>
> how to highlight the result which contained "age of kamal"
>
>
> Thanks
> Navneet Mathpal
>
> --
> 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/db2d03d8-0951-424b-8705-80e449bc91b4%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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_OhBRqpcHDXC515Lmd0Myw%3DoH26ZsYBdgzSVU467Lf2w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to