# How to filter date with optional keyword search

**URL:** <https://discuss.elastic.co/t/how-to-filter-date-with-optional-keyword-search/327260>\
**Category:** Elasticsearch\
**Created:** [March 8, 2023, 10:08am UTC](https://discuss.elastic.co/t/how-to-filter-date-with-optional-keyword-search/327260 "2023-03-08T10:08:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopikrish](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@gopikrish](https://discuss.elastic.co/u/gopikrish)\
**Post date:** [March 8, 2023, 10:08am UTC](https://discuss.elastic.co/t/how-to-filter-date-with-optional-keyword-search/327260/1 "2023-03-08T10:08:48Z")

</div>

Hi All ,  
while retrieving data from ELK, I need to filter records between two date(mandatory) with keyword (optional) parameter. The searching keyword is only present in value format not in key value pair.  
For eg ; ` { "Name" : "Gopi" }`  
the searching keyword is only value --- "gopi" no need to describe the key -- "name".

Thanks in advance,

---

<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:** [April 5, 2023, 10:08am UTC](https://discuss.elastic.co/t/how-to-filter-date-with-optional-keyword-search/327260/2 "2023-04-05T10:08:52Z")

</div>

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