Skip to content

Discover does not use tiebreaker sort order #32221

Description

@wylieconlon

This is a bug with the discover view. In this screenshot, the expected behavior is that the offset field would be sorted, because the context:tieBreakerFields is set to offset,_doc in advanced settings.

screenshot 2019-02-28 12 14 04

The "view surrounding documents" view, or context view, uses the tiebreaker fields to determine sort order. The Discover view should also use the same sort order.

There are some related issues with the context view: #12937 #18647

Activity

  1. added
    bugFixes for quality problems that affect the customer experience
    Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//
    on Feb 28, 2019
  2. elasticmachine commented on Feb 28, 2019

    @elasticmachine
    Contributor

    Pinging @elastic/kibana-app

  3. self-assigned this
    on Feb 28, 2019
  4. thethomp commented on May 12, 2020

    @thethomp

    I can confirm this is still an issue in Kibana 7.1.1 in the Discover App view.

  5. wylieconlon commented on May 12, 2020

    @wylieconlon
    ContributorAuthor

    This issue has been fixed by #41918

  6. Beeez commented on May 27, 2020

    @Beeez

    On 7.7.0 I feel like i am still seeing this problem? I am needing to add the log.offset field, then sort by descending to get anything to show up in the right order

  7. mfriess2 commented on Oct 15, 2020

    @mfriess2

    I have installed ELK 7.9.2 and can confirm that this does not seem to work anymore in the "Discover" view!
    I added a numeric field in logstash which adds nanoseconds and is sortable and configured this new field as "tie breaker" field.

    It only seems to work if I manually add my new nanoseconds-field to the discover view (as column) and then sort by it. But this is a) a manually needed step for each user and b) wastes display space because of the additional column.

    Actually when I look at the comments of #41918: it describes multi-field-sorting directly in the discover view. This does work (as I described above). But this issue here describes imho another problem: the tie-breaker-configuration does not work as I would expect it from the documentation => thus this issue here might never have been fixed at all !?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Feature:DiscoverDiscover ApplicationTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions