# Check if full text field has a date in a range

**URL:** https://discuss.elastic.co/t/check-if-full-text-field-has-a-date-in-a-range/198553
**Category:** Elasticsearch
**Created:** [September 8, 2019, 11:12am UTC](https://discuss.elastic.co/t/check-if-full-text-field-has-a-date-in-a-range/198553 "2019-09-08T11:12:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![babuscam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babuscam/32/53846_2.png) [@babuscam](https://discuss.elastic.co/u/babuscam)
#### Post date: [September 8, 2019, 11:12am UTC](https://discuss.elastic.co/t/check-if-full-text-field-has-a-date-in-a-range/198553/1 "2019-09-08T11:12:31Z")

</div>

Hello I am new to elastic world and I am trying to figure out how can I find if a field for example "text" (which represents the whole text indexed) has a date that is in a specific range ?

Example:  
In doc\_1 in field "text" we have "I was born on 27/05/1995" and I want to check if this document has a date inside it, which is between 20/05/1995 and 30/05/1995.

If this is not possible then how can I take this date "27/05/1995" and store it into a new field when I am indexing this doc ? And can you give me a tip about the best approach when we talk about indexing documents containing dates ?

Thank you

---

<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: [October 6, 2019, 11:12am UTC](https://discuss.elastic.co/t/check-if-full-text-field-has-a-date-in-a-range/198553/2 "2019-10-06T11:12:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
