# \[Just Pushed\] Search Highlighting

**URL:** <https://discuss.elastic.co/t/just-pushed-search-highlighting/2853>\
**Category:** Elasticsearch\
**Created:** [March 18, 2010, 2:08pm UTC](https://discuss.elastic.co/t/just-pushed-search-highlighting/2853 "2010-03-18T14:08:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 18, 2010, 2:08pm UTC](https://discuss.elastic.co/t/just-pushed-search-highlighting/2853/1 "2010-03-18T14:08:02Z")

</div>

Just pushed support for search highlighting, check it out here:  
[http://github.com/elasticsearch/elasticsearch/issues/issue/69](http://github.com/elasticsearch/elasticsearch/issues/issue/69) (documents  
it). Its quite nice now, especially with the all field (as highlighting  
complex documents is often hard, and all comes to the rescue). One thing  
that I would love to get feedback on is the tag schemas, and if there should  
be more tag schemas (read the issue for a description of them).

-shay.banon

---

<div class="post-metadata">

**Author:** ![itsu](https://avatars.discourse-cdn.com/v4/letter/i/278dde/32.png) [@itsu](https://discuss.elastic.co/u/itsu)\
**Post date:** [June 21, 2010, 10:39am UTC](https://discuss.elastic.co/t/just-pushed-search-highlighting/2853/2 "2010-06-21T10:39:44Z")

</div>

Great feature I'd love to use, but think I'll need a little help:

I'm using elasticsearch-0.8.0.

**dynamic-mapping.json** :  
{  
"_default_" : {  
"\_all" : {"store" : "yes", "term\_vector" : "with\_positions\_offsets"}  
}  
}

**Indexed data (5 times)**:  
[http://localhost:9200/twitter/tweet/](http://localhost:9200/twitter/tweet/)

{  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
}

**Query** :  
[http://localhost:9200/\_all/\_search](http://localhost:9200/_all/_search)

{  
query : {  
term : { "\_all" : "kimchy" }  
},  
highlight : {  
fields : {  
"\_all" : { }  
}  
}  
}

**Result** :  
{"\_shards":{"total":10,"successful":10,"failed":0},"hits":{"total":5,"hits":[{"\_index":"twitter","\_type":"tweet","\_id":"274cc448-5798-4ff6-8127-055817bab3ab", "\_source" : {  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
},"highlight":{"\_all":null}},{"\_index":"twitter","\_type":"tweet","\_id":"e0e0132e-6cf3-4908-b90d-71695f6f90ce", "\_source" : {  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
},"highlight":{"\_all":null}},{"\_index":"twitter","\_type":"tweet","\_id":"6747c38e-958e-4c4e-b7c1-690ee740222f", "\_source" : {  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
},"highlight":{"\_all":null}},{"\_index":"twitter","\_type":"tweet","\_id":"3821904f-6b48-4ff1-879b-1cc4b1d5264e", "\_source" : {  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
},"highlight":{"\_all":null}},{"\_index":"twitter","\_type":"tweet","\_id":"219ceb75-ee98-45ce-b4d9-e132ecb32645", "\_source" : {  
"user" : "kimchy",  
"postDate" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
},"highlight":{"\_all":null}}]}}

How can I get the highlighting to work?

Thanks,  
Itsu

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:23am UTC](https://discuss.elastic.co/t/just-pushed-search-highlighting/2853/3 "2017-07-06T04:23:07Z")

</div>


