# Elastic 2.3.0 Highlighting

**URL:** <https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012>\
**Category:** Elasticsearch\
**Created:** [May 3, 2016, 4:44am UTC](https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012 "2016-05-03T04:44:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Ye](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Antonio\_Ye](https://discuss.elastic.co/u/Antonio_Ye)\
**Post date:** [May 3, 2016, 4:44am UTC](https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012/1 "2016-05-03T04:44:39Z")

</div>

I can't get highlight to work for me. I am doing a query\_string search with highlight set for "\*" and I am not getting the highlight property on the JSON response. Here is the command I am running:

curl -XPOST '[http://localhost:9200/table/\_search?pretty=true](http://localhost:9200/table/_search?pretty=true)' -d '{"query":{"query\_string":{"query":"sap"}}, "highlight":{"fields":{"\*":{}}}}'

Note I do not have store set to true in the mapping for any of the fields but it is my understanding that highlighting should use the \_source field in this case.

Thanks,  
Tony

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [May 3, 2016, 9:21pm UTC](https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012/2 "2016-05-03T21:21:02Z")

</div>

You'll want to have a look at [require\_field\_match](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html) when using the `_all` field like you are probably doing. I know you don't explicitly say you are using `_all`, but it is the default for `query_string` if you haven't set a list of fields.

---

<div class="post-metadata">

**Author:** ![Antonio\_Ye](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Antonio\_Ye](https://discuss.elastic.co/u/Antonio_Ye)\
**Post date:** [May 4, 2016, 1:05am UTC](https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012/3 "2016-05-04T01:05:16Z")

</div>

Excellent! That did the trick.

Thanks Nik

---

<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 5, 2017, 10:54pm UTC](https://discuss.elastic.co/t/elastic-2-3-0-highlighting/49012/4 "2017-07-05T22:54:11Z")

</div>


