elastic / kibana

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

Upgrade the Dataview API request to filter out "Empty fields" #176082

Open ninoslavmiskovic opened 7 months ago

ninoslavmiskovic commented 7 months ago

We're soon introducing an enhancement to the field_caps API that will allow the exclusion of fields that have always been empty, on an index level, from the field list. These fields will be categorized under the section titled "Empty fields."

This idea is to refine the Dataview API request. This upgraded request will retrieve the field list but omit the empty fields.

Skærmbillede 2024-02-01 kl  17 43 13

This update is primarily aimed at enhancing the user experience (UX) by streamlining the field list presented during searches, particularly in the unified search interface. Users will benefit from a more relevant and concise list, displaying only fields that contain values. Example of a long field list that could be shorter:

https://github.com/elastic/kibana/assets/108192783/86f45454-d5b4-43aa-b7fa-59ce82ee8fa1

Additionally, this change is expected to reduce network traffic and lower associated costs.

This improvement will be reflected across all functionalities that utilize the data-view request for obtaining the field list.

Important Note:

We are also considering the provision for users to access the "Empty fields" when needed. This functionality will be integrated into the design of the field list and unified search interfaces, among others, allowing users to retrieve these fields on demand

elasticmachine commented 7 months ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

kertal commented 5 months ago

Setting this to blocked, because filtering out empty fields as a default would cause performance issues on Elasticsearch side, when there are lots of shards queried for just returning fields that have/had values