# Elastic Search 5.x - unable to search date stored as text type

**URL:** https://discuss.elastic.co/t/elastic-search-5-x-unable-to-search-date-stored-as-text-type/86298
**Category:** Elasticsearch
**Created:** [May 18, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elastic-search-5-x-unable-to-search-date-stored-as-text-type/86298 "2017-05-18T15:42:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![akatla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akatla/32/24036_2.png) [@akatla](https://discuss.elastic.co/u/akatla)
#### Post date: [May 18, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elastic-search-5-x-unable-to-search-date-stored-as-text-type/86298/1 "2017-05-18T15:42:16Z")

</div>

I have created an index - has fields of text , date types  
one of the date field stored as text field in elastic.  
In Kibana, I am not able to search for specific date in this field  
(sample search - datefield:"2017-01-01")

Can someone tell me what am I missing ?

---

<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: [June 15, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elastic-search-5-x-unable-to-search-date-stored-as-text-type/86298/2 "2017-06-15T15:42:21Z")

</div>

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