Skip to content

Commit 06fabe6

Browse files
author
Christoph Büscher
committed
[Docs] Clarify accepted sort case (#31605)
Rescore only works with an explicite "sort" element if it is on descending "_score". Even using "order" : "asc" will throw an error.
1 parent 7b75c4e commit 06fabe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/search/request/rescore.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Currently the rescore API has only one implementation: the query
1515
rescorer, which uses a query to tweak the scoring. In the future,
1616
alternative rescorers may be made available, for example, a pair-wise rescorer.
1717

18-
NOTE: An error will be thrown if an explicit <<search-request-sort,`sort`>> (other than `_score`)
19-
is provided with a `rescore` query.
18+
NOTE: An error will be thrown if an explicit <<search-request-sort,`sort`>>
19+
(other than `_score` in descending order) is provided with a `rescore` query.
2020

2121
NOTE: when exposing pagination to your users, you should not change
2222
`window_size` as you step through each page (by passing different

0 commit comments

Comments
 (0)