Skip to content

Commit 73f6237

Browse files
pstrsrleemthompo
authored andcommitted
Fix syntax errors in the rescore retriever example (#121024)
1 parent 61f5b01 commit 73f6237

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
@@ -456,10 +456,13 @@ GET movies/_search
456456
"retriever": {
457457
"rescorer": { <2>
458458
"rescore": {
459-
"query": { <3>
460-
"window_size": 50, <4>
459+
"window_size": 50, <3>
460+
"query": { <4>
461461
"rescore_query": {
462462
"script_score": {
463+
"query": {
464+
"match_all": {}
465+
},
463466
"script": {
464467
"source": "cosineSimilarity(params.queryVector, 'product-vector_final_stage') + 1.0",
465468
"params": {
@@ -516,8 +519,8 @@ GET movies/_search
516519
// TEST[skip:uses ELSER]
517520
<1> Specifies the number of top documents to return in the final response.
518521
<2> A `rescorer` retriever applied as the final step.
519-
<3> The definition of the `query` rescorer.
520-
<4> Defines the number of documents to rescore from the child retriever.
522+
<3> Defines the number of documents to rescore from the child retriever.
523+
<4> The definition of the `query` rescorer.
521524
<5> Specifies the child retriever definition.
522525
<6> Defines the number of documents returned by the `rrf` retriever, which limits the available documents to
523526

0 commit comments

Comments
 (0)