Skip to content

Conversation

@brwe
Copy link
Contributor

@brwe brwe commented Jun 30, 2016

When each function in function_score has a filter but none of them matches
we always assume 1 for the combined functions and then combine that with the
sub query score.
But the explanation did not reflect that because in case no function matched
we did not even use the actual score that was computed in the explanation.

@clintongormley clintongormley added the :Search/Search Search-related issues that do not fall into other categories label Jun 30, 2016
@brwe brwe force-pushed the fix-func-score-explain branch from ae07dfd to 854cc08 Compare June 30, 2016 16:46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you could use Collections.emptyList() here.

@danielmitterdorfer
Copy link
Member

Left two very minor comments. Otherwise LGTM.

brwe added 2 commits July 27, 2016 17:25
When each function in function_score has a filter but none of them matches
we always assume 1 for the combined functions and then combine that with the
sub query score.
But the explanation did not reflect that because in case no function matched
we did not even use the actual score that was computed in the explanation.
@brwe brwe force-pushed the fix-func-score-explain branch from 854cc08 to 3585673 Compare July 27, 2016 17:05
@brwe
Copy link
Contributor Author

brwe commented Jul 27, 2016

@danielmitterdorfer thanks a lot for the review! addressed all comments.

@brwe brwe merged commit 105dce0 into elastic:master Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search/Search Search-related issues that do not fall into other categories v5.0.0-alpha5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants