# ES 0.19.0 - highlight: require\_field\_match=true returns no highlights

**URL:** <https://discuss.elastic.co/t/es-0-19-0-highlight-require-field-match-true-returns-no-highlights/6913>\
**Category:** Elasticsearch\
**Created:** [March 6, 2012, 4:17pm UTC](https://discuss.elastic.co/t/es-0-19-0-highlight-require-field-match-true-returns-no-highlights/6913 "2012-03-06T16:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanwalbran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanwalbran/32/2971_2.png) [@seanwalbran](https://discuss.elastic.co/u/seanwalbran)\
**Post date:** [March 6, 2012, 4:17pm UTC](https://discuss.elastic.co/t/es-0-19-0-highlight-require-field-match-true-returns-no-highlights/6913/1 "2012-03-06T16:17:44Z")

</div>

Hi,

Looks like in ES 0.19.0, when using search highlighting, if  
require\_field\_match is set to true, the highlights are not returned  
(even if the field matches). Curl reproduction gist follows (works  
with 0.18.x):

> <https://gist.github.com/seanwalbran/1987055>

Any help appreciated.  
Thanks,  
Sean

---

<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 6, 2012, 8:50pm UTC](https://discuss.elastic.co/t/es-0-19-0-highlight-require-field-match-true-returns-no-highlights/6913/2 "2012-03-06T20:50:30Z")

</div>

The require field match flag is new in 0.19, so it might work in 0.18 because its not really taking it into affect. Also, you search on \_all (the default field when using query\_string), and highlight message...

On Tuesday, March 6, 2012 at 6:17 PM, seanwalbran wrote:

> Hi,
> 
> Looks like in ES 0.19.0, when using search highlighting, if  
> require\_field\_match is set to true, the highlights are not returned  
> (even if the field matches). Curl reproduction gist follows (works  
> with 0.18.x):
> 
> [https://gist.github.com/1987055](https://gist.github.com/1987055)
> 
> Any help appreciated.  
> Thanks,  
> Sean

---

<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, 3:37am UTC](https://discuss.elastic.co/t/es-0-19-0-highlight-require-field-match-true-returns-no-highlights/6913/3 "2017-07-06T03:37:04Z")

</div>


