-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
The get_mappings
tool does not work when you have remote clusters and remote indexes which is the case when using cross-cluster-search.
We should switch to a different API or add a new tool get_field_caps https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html. The _field_caps API is specifically designed to provide information about the capabilities of fields across multiple indices, including those in remote clusters.
To get information about all fields in an index, you can make a simple call to the _field_caps endpoint:
GET /_field_caps?fields=*&filters=-metadata
_field_caps returns an is-field-metadata, with that we should be able to extract the info that we are currently extracting from _mapping
Metadata
Metadata
Assignees
Labels
No labels