# 2.0.0 Beta doesn't seem to return highlights

**URL:** <https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046>\
**Category:** Elasticsearch\
**Created:** [September 25, 2015, 9:19pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046 "2015-09-25T21:19:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dexterama](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dexterama](https://discuss.elastic.co/u/Dexterama)\
**Post date:** [September 25, 2015, 9:19pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/1 "2015-09-25T21:19:48Z")

</div>

I have 1.51, 1.6.0, 1.7.2 and 2.0.0 beta installed locally for testing. Nothing seems different in the online docs in regards to highlights and 2.0.0 beta, but 2.0.0 does not return highlights to me and I was wondering if anyone noticed this, or if the mechanism has changed?

For example, in all but 2.0.0, the following will return hit highlighting for all matched fields:  
, "highlight": {  
"fields": {  
"\*": {}  
}

In the 2.0.0 beta, I get no highlight data and I'm not sure what to change to correct it. Does anyone have any more information, or a link you could direct me towards? Thanks much.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 25, 2015, 11:32pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/2 "2015-09-25T23:32:14Z")

</div>

Are you able to provide a complete replication using Sense/curl?

---

<div class="post-metadata">

**Author:** ![Dexterama](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dexterama](https://discuss.elastic.co/u/Dexterama)\
**Post date:** [September 28, 2015, 1:15pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/3 "2015-09-28T13:15:30Z")

</div>

Here's the full search query. Search for a value not a \*, and in the other releases, using \* in my highlight request returns all fields per document that match. In the other versions, inclusion of the ?pretty was required for highlighting to return.

GET /\_search?pretty  
{  
"from": 0,  
"size": 5,  
"query": {  
"filtered": {  
"query": {  
"query\_string": {  
"query": "fred"  
}  
}  
}  
}  
, "highlight": {  
"fields": {  
"\*": {}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 28, 2015, 1:27pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/4 "2015-09-28T13:27:16Z")

</div>

By complete recreation I meant [this](https://www.elastic.co/help) 🙂

---

<div class="post-metadata">

**Author:** ![Dexterama](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dexterama](https://discuss.elastic.co/u/Dexterama)\
**Post date:** [September 28, 2015, 1:44pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/5 "2015-09-28T13:44:26Z")

</div>

That search could be run on ANY mapping in ANY environment in ANY 1.5.1 or later version of Elastic. You might need to change the search string to one that's in a local database, but I was asking a GENERAL QUESTION, not a specific detailed example. In neither 2.0.0 beta 1 or beta 2 does highlighting data return. That query runs in 1.5.1, 1.6.0, 1.7.2 but not in the 2.0.0 products.

---

<div class="post-metadata">

**Author:** ![Dexterama](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dexterama](https://discuss.elastic.co/u/Dexterama)\
**Post date:** [September 28, 2015, 2:06pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/6 "2015-09-28T14:06:52Z")

</div>

Added this and no change:  
, "require\_field\_match" : "false"

According to the 2.0 docs, this should allow a search for \_all to return highlights on details, whereas the default was changed, but it still does not.

---

<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, 11:47pm UTC](https://discuss.elastic.co/t/2-0-0-beta-doesnt-seem-to-return-highlights/30046/7 "2017-07-05T23:47:46Z")

</div>


