Skip to content

Commit 739209b

Browse files
committed
Fix syntax errors in the rescore retriever example
1 parent 03cb385 commit 739209b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/reference/search/retriever.asciidoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,13 @@ GET movies/_search
433433
"retriever": {
434434
"rescorer": { <2>
435435
"rescore": {
436-
"query": { <3>
437-
"window_size": 50, <4>
436+
"window_size": 50, <3>
437+
"query": { <4>
438438
"rescore_query": {
439439
"script_score": {
440+
"query": {
441+
"match_all": {}
442+
},
440443
"script": {
441444
"source": "cosineSimilarity(params.queryVector, 'product-vector_final_stage') + 1.0",
442445
"params": {
@@ -493,8 +496,8 @@ GET movies/_search
493496
// TEST[skip:uses ELSER]
494497
<1> Specifies the number of top documents to return in the final response.
495498
<2> A `rescorer` retriever applied as the final step.
496-
<3> The definition of the `query` rescorer.
497-
<4> Defines the number of documents to rescore from the child retriever.
499+
<3> Defines the number of documents to rescore from the child retriever.
500+
<4> The definition of the `query` rescorer.
498501
<5> Specifies the child retriever definition.
499502
<6> Defines the number of documents returned by the `rrf` retriever, which limits the available documents to
500503

0 commit comments

Comments
 (0)