# Wildcards in field names

**URL:** <https://discuss.elastic.co/t/wildcards-in-field-names/17417>\
**Category:** Elasticsearch\
**Created:** [May 8, 2014, 8:22pm UTC](https://discuss.elastic.co/t/wildcards-in-field-names/17417 "2014-05-08T20:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ltuhuru](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@ltuhuru](https://discuss.elastic.co/u/ltuhuru)\
**Post date:** [May 8, 2014, 8:22pm UTC](https://discuss.elastic.co/t/wildcards-in-field-names/17417/1 "2014-05-08T20:22:02Z")

</div>

Is there a way to aggregate across fields with wildcards in the name? I have documents with a variety of structures, and I want to be able to aggregate across all fields with the name "special\_label". That field may occur in various structural places within the document.

Something like this would be great, but is not supported.

{  
"aggs" : {  
"aliases" : {  
"terms" : {  
"field" : "\*.special\_label",  
}  
}  
}

---

<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:** [July 6, 2017, 1:30am UTC](https://discuss.elastic.co/t/wildcards-in-field-names/17417/2 "2017-07-06T01:30:40Z")

</div>


