# How can I find out which date/number field matched?

**URL:** <https://discuss.elastic.co/t/how-can-i-find-out-which-date-number-field-matched/17547>\
**Category:** Elasticsearch\
**Created:** [May 16, 2014, 8:35am UTC](https://discuss.elastic.co/t/how-can-i-find-out-which-date-number-field-matched/17547 "2014-05-16T08:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_s/32/958_2.png) [@Tim\_S](https://discuss.elastic.co/u/Tim_S)\
**Post date:** [May 16, 2014, 8:35am UTC](https://discuss.elastic.co/t/how-can-i-find-out-which-date-number-field-matched/17547/1 "2014-05-16T08:35:57Z")

</div>

If the user does a complex search (lots of ORs and ANDs in their query),  
it's useful to be able to show them results, highlighting the bits in each  
one that matched. The highlighting feature does this fine for string  
fields, but it does not appear to work for dates and numbers.

Is there any way of finding out which fields matched?

Thanks,

Tim.

--  
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/e0b19706-1c43-4ddd-89bc-5c9e06c3508d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e0b19706-1c43-4ddd-89bc-5c9e06c3508d%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, 1:29am UTC](https://discuss.elastic.co/t/how-can-i-find-out-which-date-number-field-matched/17547/2 "2017-07-06T01:29:01Z")

</div>


