[Discover] Pass current sort order to fetch more relevant examples in FieldStats for nonaggregatable fields #140732
Labels
enhancement
New value added to drive a business result
Feature:Discover
Discover Application
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
In
<FieldStats />
component (inside the sidebar field popover) we fetch only 100 existing documents to build stats for non-aggregatable fields. This request does not includesort
param yet. To have better results we should pass current field sorting order from Discover to FieldStats request. This way the examples (shown in the field popover) will match what user sees in the current Discover grid rows.See
buildSearchParams
insrc/plugins/unified_field_list/common/utils/field_stats_utils.ts
The text was updated successfully, but these errors were encountered: