-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Apply boost in script_score query to the whole query #48465
Labels
>bug
:Search Relevance/Ranking
Scoring, rescoring, rank evaluation.
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Comments
mayya-sharipova
added
the
:Search Relevance/Ranking
Scoring, rescoring, rank evaluation.
label
Oct 24, 2019
Pinging @elastic/es-search (:Search/Ranking) |
Adding |
We have decided to document this behaviour in |
mayya-sharipova
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Feb 18, 2020
Before boost in script_score query was wrongly applied only to the subquery. This commit makes sure that the boost is applied to the whole score that comes out of script. Closes elastic#48465
mayya-sharipova
added a commit
that referenced
this issue
Feb 24, 2020
Before boost in script_score query was wrongly applied only to the subquery. This commit makes sure that the boost is applied to the whole score that comes out of script. Closes #48465
mayya-sharipova
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Feb 24, 2020
Before boost in script_score query was wrongly applied only to the subquery. This commit makes sure that the boost is applied to the whole score that comes out of script. Closes elastic#48465
mayya-sharipova
added a commit
that referenced
this issue
Feb 24, 2020
javanna
added
the
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
label
Jul 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search Relevance/Ranking
Scoring, rescoring, rank evaluation.
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Current
boost
parameter in script_score query is wrongly only applied to the subquery.For example, this query returns
1
without applyingboost
:While this query returns
3
applying boost to the subquery.This behaviour was partially copied from
function_score
query whereboost
is applied to both subquery and the whole query. For example, this query returns9
where boost is applied to the subquery and also the whole query (which is quite confusing).We need to correct
boost
behaviour inscript_score
to apply only the whole query, and not subquery.The text was updated successfully, but these errors were encountered: