# Highlighting doesn't work on numeric and date fields

**URL:** <https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938>\
**Category:** Elasticsearch\
**Created:** [February 21, 2014, 3:07am UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938 "2014-02-21T03:07:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preeti\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Preeti\_Jain](https://discuss.elastic.co/u/Preeti_Jain)\
**Post date:** [February 21, 2014, 3:07am UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938/1 "2014-02-21T03:07:54Z")

</div>

Hi All,

We are using elasticsearch version .90.03. We observed that highlighting  
doesn't work on numeric and date fields.  
Has someone else faced the same issue? What is the solution to this problem.

Thanks,  
Preeti

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4d28d763-dde6-4440-a929-dca6a7541bd0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d28d763-dde6-4440-a929-dca6a7541bd0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 21, 2014, 1:14pm UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938/2 "2014-02-21T13:14:09Z")

</div>

You can do a multi-field on numeric fields with a string/not\_analyzed field  
and then highlight on that.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0f620002-0b84-4ec7-979b-8ab30f8fbbee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0f620002-0b84-4ec7-979b-8ab30f8fbbee%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Preeti\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Preeti\_Jain](https://discuss.elastic.co/u/Preeti_Jain)\
**Post date:** [February 25, 2014, 3:45am UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938/3 "2014-02-25T03:45:47Z")

</div>

Thanks for your response.  
I have to use numeric and date fields in range queries so the string field  
of mutli-field will not work.  
Any other thought?

On Friday, February 21, 2014 6:44:09 PM UTC+5:30, Binh Ly wrote:

> You can do a multi-field on numeric fields with a string/not\_analyzed  
> field and then highlight on that.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/349bc1ca-12bf-4f1c-a95f-785e0b245217%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/349bc1ca-12bf-4f1c-a95f-785e0b245217%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Vineet\_Saju](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@Vineet\_Saju](https://discuss.elastic.co/u/Vineet_Saju)\
**Post date:** [May 22, 2015, 2:43pm UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938/4 "2015-05-22T14:43:31Z")

</div>

Any luck with this? I'm facing the same problem

On Monday, February 24, 2014 at 9:45:47 PM UTC-6, Preeti Jain wrote:

> Thanks for your response.  
> I have to use numeric and date fields in range queries so the string field  
> of mutli-field will not work.  
> Any other thought?
> 
> On Friday, February 21, 2014 6:44:09 PM UTC+5:30, Binh Ly wrote:
> 
> > You can do a multi-field on numeric fields with a string/not\_analyzed  
> > field and then highlight on that.

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e3d3921c-ac5c-4b74-89ac-516d213b5430%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3d3921c-ac5c-4b74-89ac-516d213b5430%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:12am UTC](https://discuss.elastic.co/t/highlighting-doesnt-work-on-numeric-and-date-fields/15938/5 "2017-07-06T00:12:20Z")

</div>


