Score value is 0 in _explanation with random_score query #10742
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
v1.5.2
v1.6.0
v2.0.0-beta1
Sending random_score function query with explain=true to Elasticsearch 1.5.1, the value is always 0 in _explanation as below.
I looked into RandomScoreFunction class.
I think that exp.setValue(CombineFunction.toFloat(score(docId, subQueryScore.getValue()))) needs to be call in explainScore method.
The text was updated successfully, but these errors were encountered: