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

Deprecate negative field boosts in analyzed queries #38176

Merged
merged 3 commits into from
Feb 1, 2019

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Feb 1, 2019

Backport of #37930 that transforms the error into a deprecation warning for 6x.

This change forbids negative field boost in the `query_string`, `simple_query_string`
and `multi_match` queries.
Negative boosts are not allowed in Lucene 8 (scores must be positive).
The backport of this change to 6x will turn the error into a deprecation warning
in order to raise the awareness of this breaking change in 7.0.

Closes elastic#33309
@jimczi jimczi added :Search Relevance/Ranking Scoring, rescoring, rank evaluation. backport v6.7.0 labels Feb 1, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@jimczi jimczi merged commit 51791f9 into elastic:6.x Feb 1, 2019
@jimczi jimczi deleted the negative_field_boost_backport branch February 1, 2019 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Search Relevance/Ranking Scoring, rescoring, rank evaluation. v6.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants