Get all field names / mappings for a specific query


(Tony) #1

Say I have clothing types that each have shared and distinct mappings. I can get all of the field mappings using the get mapping API. It seems prior to ES 5, we used to be able to aggregate on _field_names in order to get mappings for a particular query. Since this is no longer possible, what is the best way to get this data?

I want to get the mappings for the following query:

{ "query": { "bool": { "filter": { "term": { "type": "shirt" } } } } }

What is the best way to go about accomplishing this?

Thanks


(system) #3

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