# Is it possible to search on the field name through wildcard?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-search-on-the-field-name-through-wildcard/268452>\
**Category:** Elasticsearch\
**Created:** [March 26, 2021, 8:36am UTC](https://discuss.elastic.co/t/is-it-possible-to-search-on-the-field-name-through-wildcard/268452 "2021-03-26T08:36:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Miguel\_BA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_ba/32/46926_2.png) [@Miguel\_BA](https://discuss.elastic.co/u/Miguel_BA)\
**Post date:** [March 26, 2021, 9:46am UTC](https://discuss.elastic.co/t/is-it-possible-to-search-on-the-field-name-through-wildcard/268452/4 "2021-03-26T09:46:00Z")

</div>

you are right that it is a bad practice, and I have indicated to modify the JSON in the way as you have said, with unique fields. But the above documents are created and I am looking into how to fix it with Elasticsearch.  
I have looked at the query\_string with range function:

> [@Query string with range](https://discuss.elastic.co/t/query-string-with-range/85111):
>
> I'm having difficulties getting the this one right. What did I miss? { "query": { "query\_string" : { "analyze\_wildcard": true, "query" : "failed to add key to cache" }, "range": { "@timestamp": { "gte": "now-900s" } } } }

Do you think this function can help me?  
Thanks for your answers

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-search-on-the-field-name-through-wildcard/268452)._
