Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Aug 12, 2016

ContextIndexSearcher#explain ignores the dfs data to create the normalized weight.
This change fixes this discrepancy by using the dfs data to create the normalized weight when needed.

Fixes #15369

@jimczi jimczi added >bug :Search/Search Search-related issues that do not fall into other categories v5.0.0-beta1 labels Aug 12, 2016
@javanna
Copy link
Member

javanna commented Aug 12, 2016

I gues this fix is correct, but can you please write a test for it? ;)

@jimczi
Copy link
Contributor Author

jimczi commented Aug 12, 2016

Thanks @javanna.
I pushed a small test to validate that the fix is correct, could you please review it ?

Copy link
Member

Choose a reason for hiding this comment

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

this last line is redundant I think, we already check the same above

@javanna
Copy link
Member

javanna commented Aug 12, 2016

LGTM, but I am not too familiar with dfs so I would prefer @jpountz to have a quick second look.

@jpountz
Copy link
Contributor

jpountz commented Aug 12, 2016

LGTM!

ContextIndexSearcher#explain ignores the dfs data to create the normalized weight.
This change fixes this discrepancy by using the dfs data to create the normalized weight when needed.
@jimczi jimczi merged commit c9722c4 into elastic:master Aug 12, 2016
@jimczi jimczi deleted the dfs_explain branch August 12, 2016 10:22
@jimczi
Copy link
Contributor Author

jimczi commented Aug 12, 2016

Thansk @javanna and @jpountz !

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-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

score and explanation for dfs queries don't match

3 participants