Skip to content
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

Fix scoring in Elasticsearch for dot product #517

Merged
merged 2 commits into from
Oct 23, 2020
Merged

Conversation

tanaysoni
Copy link
Contributor

@tanaysoni tanaysoni commented Oct 23, 2020

Beginning with Elasticsearch v7.7.0, negative script scores are no longer supported. Since the dot product score can be negative, this PR adds an offset based on heuristics to ensure the scores are positive.

Additionally, the Elasticsearch version in the code, CI, and tutorials is upgraded to v7.9.2.

Resolves #483

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@tanaysoni tanaysoni requested a review from tholor October 23, 2020 14:37
Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

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

Looking good!

@tanaysoni tanaysoni merged commit db4151b into master Oct 23, 2020
@tanaysoni tanaysoni deleted the fix-es-scoring branch October 23, 2020 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants