When querying an index pattern in the Discover tab, all results have a _score as 0. However, when querying the same indices in the Kibana console, _score is not returned as 0.
Does anyone know why this is happening?
When querying an index pattern in the Discover tab, all results have a _score as 0. However, when querying the same indices in the Kibana console, _score is not returned as 0.
Does anyone know why this is happening?
Hi @Aislinn_Cronin,
the reason is that Discover includes a sort
clause in the query. That means that scores are not tracked to avoid using extra resources.
thanks for the reply! is there a way to update the settings to have the score be calculated in Discover?
If you add _score
as a column and sort by it, it should be calculated.
I actually tried that. I tried again and still no luck. Adding _score as a selected field and sorting by doesnt seem to work. The scores for all docs show 0.
Hm, I can not reproduce that problem:
Sorting by timestamp - score is not tracked
Sorting by _score - score is tracked
Can you share with us the request and response for the search sorted by _score
, which is displayed in the inspector?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.