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 scores in functon_score query #35865

Conversation

mayya-sharipova
Copy link
Contributor

Relates to #33309, backport for #35709

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@@ -153,6 +153,9 @@ GET /_search
// CONSOLE
// TEST[setup:twitter]

NOTE: Scores produced by the `script_score` function must be non-negative,
Copy link
Contributor

Choose a reason for hiding this comment

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

you can maybe make it a WARNING: ?

@@ -324,6 +327,9 @@ There are a number of options for the `field_value_factor` function:
values of the field with a range filter to avoid this, or use `log1p` and
`ln1p`.

NOTE: Scores produced by the `field_value_score` function must be
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@mayya-sharipova mayya-sharipova merged commit 3132c29 into elastic:6.x Nov 23, 2018
@mayya-sharipova mayya-sharipova deleted the script-score-ensure-nonnegative-scores-6.x branch November 23, 2018 20:17
@jimczi jimczi removed the backport label Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>deprecation :Search Relevance/Ranking Scoring, rescoring, rank evaluation. v6.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants