-
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 tab should sort by score when index pattern doesn't contain time-based data #3973
Comments
Results are sorted by score by default. Can you show me an example of this not happening? Kibana explicitly asks for _score sort by default on indices without a time.
Its possible that Kibana will display the in a slightly different order than returned by elasticsearch if there are documents that are scored exactly the same, however in that case elasticsearch's order is more happenstance than anything else. |
I just tried to create a small test case and of course everything worked as it should, results being sorted by relevance. So this must be something else weird with my setup? What's particularly funny when looking at the original test data, is that hit number 1 always has a very low score, while hit number 2 is really number 1. Could it be some kind of one off paging bug? |
nope, kibana doesn't do any paging. Do you have a data set that replicates the incorrect behavior reliably? |
Tried again, starting on a fresh install, using default Logstash mapping. Searching for "India pale ale" in the discover panel returns an item with score 0.147 at the top position, hit 2 has score 1.18, same score for hit 3. |
The snapshot contains indexes that reproduces the bug. It contains a .kibana index and a testvinmonopolet index which contains the data. Just to be clear, I know that you know this already, but here is the procedure for restoring the snapshot 😄 The snapshot name inside the backup is |
When using the discover tab for searching data without timestamp, result are not sorted by score. The index-pattern is created without timestamp, and the query response from Elasticsearch is sorted by score (can be seen by inspecting the results in javascript debugger) . Some custom score seems to be applied as the results are displayed.
Using Kibana 4.0.2, also tried using latest from github.
The text was updated successfully, but these errors were encountered: