# Not able to search with date range filter

**URL:** <https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088>\
**Category:** Elasticsearch\
**Created:** [October 16, 2023, 9:55am UTC](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088 "2023-10-16T09:55:15Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![bhumika](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bhumika](https://discuss.elastic.co/u/bhumika)\
**Post date:** [October 16, 2023, 11:12am UTC](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088/21 "2023-10-16T11:12:18Z")

</div>

how can I recreate the index with curl or with gem also I can do that ?

I just tried to recreate the index but previous fields are again mapped created\_at is still not there.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 16, 2023, 11:20am UTC](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088/22 "2023-10-16T11:20:10Z")

</div>

Create the index manually through curl with the full mappings. That way no errors or issues are hidden from you.

---

<div class="post-metadata">

**Author:** ![bhumika](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bhumika](https://discuss.elastic.co/u/bhumika)\
**Post date:** [October 16, 2023, 11:35am UTC](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088/23 "2023-10-16T11:35:07Z")

</div>

Thanks for your help. It's working for me now.

I just deleted the previous index and created the one defined in file through console and all the filters are working as required.

---

<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:** [November 13, 2023, 11:35am UTC](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088/24 "2023-11-13T11:35:38Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/not-able-to-search-with-date-range-filter/345088.md?page=1)
