elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.62k stars 24.64k forks source link

Cross-cluster field-caps should return a list of skipped clusters #113394

Open quux00 opened 1 hour ago

quux00 commented 1 hour ago

Description

In ES|QL we need to determine whether, during the field-caps action, any clusters were skipped due to not be available. Add logic to record this and include a list of missing/skipped clusters in the FieldCapsResponse.

We could do this either in the core field-caps action or ES|QL could fully fork field-caps (into EsqlResolveFieldsAction) when we do this.

Once done, we can remove the logic in IndexResolver to detect which clusters are missing.

elasticsearchmachine commented 1 hour ago

Pinging @elastic/es-analytical-engine (Team:Analytics)