elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.5k stars 8.06k forks source link

[ML] Use field caps option `include_empty_fields ` to identify populated fields. #178606

Open walterra opened 4 months ago

walterra commented 4 months ago

As of https://github.com/elastic/elasticsearch/pull/103651 there is a new field caps option include_empty_fields. Discover is making use of this already: https://github.com/elastic/kibana/pull/174063

We have various places where we use custom code to identify populated fields of an index by getting a random sample of docs and then check which fields are populated. These queries use random_score which can be a heavy query. We should migrate to the new field caps option which will be available as of 8.13.

plugins/ml

plugins/aiops

plugins/transform

plugins/data_visualizer

plugins/apm

elasticmachine commented 4 months ago

Pinging @elastic/ml-ui (:ml)