Skip to content

Commit

Permalink
Undeprecate function_score query (#87807)
Browse files Browse the repository at this point in the history
We had a plan to deprecate function_score query with
script_score query, but ran into a roadblock of missing
functionality to combine scores from different
functions (particularly "first" script_score).
Wee have several proposal to address this missing
functionality:
 [scripted_boolean](#27588 (comment))
 [compound_query](#51967)
 [first_query](#52482)

But for now, we decided not to deprecate function_score query,
and hence we need to remove any mention that we are deprecating it.

Relates to #42811
Closes #71934
  • Loading branch information
mayya-sharipova committed Jun 17, 2022
1 parent d2b96d9 commit 0dfd318
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference/query-dsl/script-score-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ can efficiently skip non-competitive hits:

[[script-score-function-score-transition]]
===== Transition from the function score query
We are deprecating the <<query-dsl-function-score-query, `function_score`>>
query. We recommend using the `script_score` query instead.
We recommend using the `script_score` query instead of
<<query-dsl-function-score-query, `function_score`>> query for the simplicity
of the `script_score` query.

You can implement the following functions from the `function_score` query using
You can implement the following functions of the `function_score` query using
the `script_score` query:

* <<script-score>>
Expand Down

0 comments on commit 0dfd318

Please sign in to comment.