# Search with wildcard in variable name

**URL:** <https://discuss.elastic.co/t/search-with-wildcard-in-variable-name/100755>\
**Category:** Elasticsearch\
**Created:** [September 16, 2017, 7:34am UTC](https://discuss.elastic.co/t/search-with-wildcard-in-variable-name/100755 "2017-09-16T07:34:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbody](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tbody](https://discuss.elastic.co/u/tbody)\
**Post date:** [September 16, 2017, 7:34am UTC](https://discuss.elastic.co/t/search-with-wildcard-in-variable-name/100755/1 "2017-09-16T07:34:29Z")

</div>

Hello,

I have following data structure in elasticsearch:

{  
object\_name : "test1",  
src.elastic\_variable\_1 : "info1",  
src.elastic\_variable\_2 : "info2",  
src.elastic\_variable\_3 : "info1",  
dst.elastic\_variable\_1 : "info1",  
dst.elastic\_variable\_1 : "info2"  
}

The variable elastic\_variable for src and dst is dynamic. I could be, that the document have 8  
variables for src.elastic\_variable\_{1,8} (e.g).

Is it possible to search with a wildcard about all dynamic variables?  
E.g.: if src.elastic\_variable\_\* == "info2"

Thanks in advance.

Regards

---

<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:** [October 14, 2017, 7:34am UTC](https://discuss.elastic.co/t/search-with-wildcard-in-variable-name/100755/2 "2017-10-14T07:34:40Z")

</div>

Closed on October 14, 2017, 7:34am UTC

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