-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discover: Sort automatically by _score if it makes sense #54362
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
I would at least have a a warning when someone change to lucene that is sorted by the time picker, because I think if you use fuzziness and boosting you might expect somehow the result set to be sorted by score desc and timestamp desc. |
Looks like we do this already for non-timeseries data. Something that causes some confusion though is that we don't show the CC @Bargs |
So I want to solve some of the confusion around initial sort order with the new DataGrid work going on in Discover. This means I want to do two things:
Without both of these fixes, the particularly bad issues comes up that to remove These two changes would effect both the legacy table and the new CC @timroes - thoughts? |
I like the idea in general a lot, of making a distinction between time based indexes and non time based ones and apply the logic you suggested. With regards to adding _score again, to remove sort, I think that's also tracked in #54345, and I in general wonder if we need a more generic solution there. Also in terms of a more specific solution: Should we maybe consider the default sort, not to stay when the user manually select a sort, and only start "stacking sort fields" for manual added fields, but not the implicit first field? |
Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner. |
In Discover we sort by default by the timestamp. Some users suggested that it could make more sense sorting by default by
_score
if it makes more sense, e.g. that could mean if the user uses Lucene and uses boosting.I am not sure if we should still implement some special behavior based on Lucene queries, or if there are similar scenarios for KQL, where we would determine sorting by
_score
makes more sense?The text was updated successfully, but these errors were encountered: