Beginner's question: matching field names exactly (or containing a substring)

hello everybody!

i'm kinda new to elasticsearch and just entered this group. i started using
it some months ago on my work and trying to get deeper into all this stuff.

i wondered if it is possible to do elasticsearch queries where i can match
names of fields and not values of fields.

in my case, i have a very large data model i am storing in elasticsearch
with lots of field names with same suffixes.
i would like to know if I can query elasticsearch to give me a result with
all documents containing all fields ending with "_xyz" and their values of
i know i could do a simple query where i just write all the field names
explicitly, but i am curious if i could save time (and spent the saved time
here to ask this question...)

thank you all :wink:


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit