# Need help framing the query, wildcard search and range

**URL:** <https://discuss.elastic.co/t/need-help-framing-the-query-wildcard-search-and-range/122160>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 10:03pm UTC](https://discuss.elastic.co/t/need-help-framing-the-query-wildcard-search-and-range/122160 "2018-03-01T22:03:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishbish](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@krishbish](https://discuss.elastic.co/u/krishbish)\
**Post date:** [March 1, 2018, 10:03pm UTC](https://discuss.elastic.co/t/need-help-framing-the-query-wildcard-search-and-range/122160/1 "2018-03-01T22:03:24Z")

</div>

My index "access\_recs" and mapping for type "config" are like this:  
{  
"access\_recs": {  
"mappings": {  
"config": {  
"properties": {  
"timestamp": {  
"type": "date",  
"format": "epoch\_second"  
},  
"destUpdate": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
}  
}  
}  
}

How should I frame the query such that I obtain documents matching wildcard search of "destUpdate" (e.g destUpdate = "_us_texas\*") and with timestamp \> last 2 days?

---

<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:** [March 29, 2018, 10:03pm UTC](https://discuss.elastic.co/t/need-help-framing-the-query-wildcard-search-and-range/122160/2 "2018-03-29T22:03:29Z")

</div>

Closed on March 29, 2018, 10:03pm UTC

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