Wildcards in field names


(ltuhuru) #1

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",
}
}
}


(system) #2