# Highlighting issues in range queries

**URL:** <https://discuss.elastic.co/t/highlighting-issues-in-range-queries/46675>\
**Category:** Elasticsearch\
**Created:** [April 7, 2016, 12:34pm UTC](https://discuss.elastic.co/t/highlighting-issues-in-range-queries/46675 "2016-04-07T12:34:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinushan\_m](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dinushan_m/32/8095_2.png) [@dinushan\_m](https://discuss.elastic.co/u/dinushan_m)\
**Post date:** [April 7, 2016, 12:34pm UTC](https://discuss.elastic.co/t/highlighting-issues-in-range-queries/46675/1 "2016-04-07T12:34:54Z")

</div>

I use highlighting in order to prevent manually find what made the document returned for a particular query. But for some queries highlighting is not working.

1.) Range queries  
When I do a range query with highlight request , the "matched" values between a range are not highlighted. Is this by design ?

2.) Must not query results  
Words that are not matching are also not highlighted. (probably by design). Is there a way to force a highlight for each fields even if it's empty?

---

<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:01pm UTC](https://discuss.elastic.co/t/highlighting-issues-in-range-queries/46675/2 "2017-07-05T23:01:30Z")

</div>

Closed on July 5, 2017, 11:01pm UTC


