Skip to content

support cross cluster search #129

@apostolis-060

Description

@apostolis-060

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions