Skip to content

[Discover] Allow to load documents beyond the limit of discover:sampleSize #155019

@kertal

Description

@kertal

Discover currently loads a maximum of documents defined by discover:sampleSize in Advanced settings. There's no way to go beyond this number unless changing this setting. The data table used by Discover, EuiDataGrid, also doesn't provide ways to allow the incremental loading of data. There's no quick way to change this limitation, but what could be done is to use the UI that's currently telling users, that they have reached the limit, to provide a link allowing them to load more. So behind the scenes, we could use search_after of ES search (https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after) to append more documents to the current search result. So basically it could look like this:

Before:

After:

Bildschirmfoto 2023-04-17 um 12 02 43

The drawback of this approach: All documents, in this case, would be kept in the Browsers Memory, with adding more and more documents, the browser / host system might become unresponsive.

Metadata

Metadata

Assignees

Labels

Feature:DiscoverDiscover ApplicationTeam:DataDiscoveryDiscover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//enhancementNew value added to drive a business resultimpact:highAddressing this issue will have a high level of impact on the quality/strength of our product.loe:mediumMedium Level of Effort

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions