elastic / elasticsearch

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

Include index mode per index in `GET /_resolve/index/*` API response #110382

Open vadimkibana opened 6 days ago

vadimkibana commented 6 days ago

Description

Sometimes Kibana needs to know which ES indices are "TSDB", for example, to show them in METRICS ES|QL command autocomplete. Currently, the most efficient way to fetch such list is to first query for all indices using the GET /_resolve/index/* call and then loop through each index and execute GET /<index>/_settings for each index.

Instead, provide index mode metadata directly in the GET /_resolve/index/* API response, so that GET /<index>/_settings does not need to be called for each index.

elasticsearchmachine commented 5 days ago

Pinging @elastic/es-storage-engine (Team:StorageEngine)

elasticsearchmachine commented 5 days ago

Pinging @elastic/es-data-management (Team:Data Management)