elastic / kibana

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

[Discover] Add Search Functionality for Field Values in Field Stats Popover #192692

Open ninoslavmiskovic opened 1 month ago

ninoslavmiskovic commented 1 month ago

WHY:

In Discover, users often need to explore or filter data based on specific field values. Currently, the field stats popover displays top values, but when there are numerous options, users may struggle to quickly locate a particular value. This impacts usability, especially in datasets with high cardinality.

WHAT:

Introduce a search input field within the field stats popover. This input will allow users to search and filter through the field values. It will provide a search that refines the values, making it easier to pinpoint the value of interest.

BENEFITS:

Figma file

https://www.figma.com/design/nM03IVLSwQZatLtzRCwcEg/Search-in-Field-stats-popover?m=auto&node-id=6044-9273&t=tjZY5Qj4tJFbGjUn-1

Image

elasticmachine commented 1 month ago

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

l-suarez commented 1 month ago

Design needs to define a few flows, such as empty state and search behaviour inside the popover: https://github.com/elastic/platform-ux-team/issues/451

elasticmachine commented 1 month ago

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

ryankeairns commented 1 month ago

While the proposed solution may help, I am not convinced it will materially address the stated problem...

...but when there are numerous options, users may struggle to quickly locate a particular value.

In part, it won't provide an exhaustive list of values and the assumption here is that users know the particular value. As we've also seen with field names, they may not know the exact name or value and are desiring to browse. Imagine long values of a similar pattern - discerning the exact value you want will be difficult to see and do. Even if they are able to find the desired value, we now return a single result with a now out-of-context percentage associated to it.

I suspect what would move the needle in a more material way would be to provide some sort of solution for browsing data sources > fields > and field values.

ninoslavmiskovic commented 1 month ago

@ryankeairns I think what you are describing is something we can enhance in the field list. We have "recommended fields extension point" being specified and that would help users navigate and understand their data better.

jughosta commented 1 month ago

@ryankeairns Currently, we are showing maximum 10 top values. Would it help if we add a button to allow loading more? Then we could fetch 20, 30, ... top values.

ryankeairns commented 1 month ago

@ryankeairns Currently, we are showing maximum 10 top values. Would it help if we add a button to allow loading more? Then we could fetch 20, 30, ... top values.

Oooo that's a nice idea. I do think that would be nice enhancement in lieu of a more general-purpose data browsing capability.

jughosta commented 4 days ago

@ryankeairns Created a small PoC for the "Load more" idea