Check whether a field has mapping store=true

I am trying out the following use case:

I want only the fields from index template, or index mapping, for which mapping property store=true,
though I can get the mapping and parse it and check for the criteria or can use get mapping for a particular field, but the first once is not feasible and the for later I need to specify the field name in advanced, also it returns the whole mapping for field, where I need only store.

Any help is much appreciated!! Thanks:)

Welcome to our community! :smiley:

There's no way to query _mapping for a specific field type. You need to get the whole thing and parse it.

Thanks Mark!!

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