elasticsearch/docs/reference/search
Jim Ferenczi 940ef77320
[8.x] Add a generic rescorer retriever based on the search request's rescore functionality (#119023)
* Add a generic `rescorer` retriever based on the search request's rescore functionality   (#118585)

This pull request introduces a new retriever called `rescorer`, which leverages the `rescore` functionality of the search request.  
The `rescorer` retriever re-scores only the top documents retrieved by its child retriever, offering fine-tuned scoring capabilities.  

All rescorers supported in the `rescore` section of a search request are available in this retriever, and the same format is used to define the rescore configuration.  

<details>
<summary>Example:</summary>

```yaml
  - do:
      search:
        index: test
        body:
          retriever:
            rescorer:
              rescore:
                window_size: 10
                query:
                  rescore_query:
                    rank_feature:
                      field: "features.second_stage"
                      linear: { }
                  query_weight: 0
              retriever:
                standard:
                  query:
                    rank_feature:
                      field: "features.first_stage"
                      linear: { }
          size: 2
```

</details>

Closes #118327

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

* replace java21 only method

* fix compil

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-12-20 00:24:03 +11:00
..
search-your-data Changes elser service to elasticsearch service in the Semantic search with the inference API page (#118536) (#118546) 2024-12-12 22:42:15 +11:00
suggesters Update term-suggest.asciidoc (#86780) 2023-05-09 12:23:45 +02:00
async-search.asciidoc [Doc] Privileges required to retrieve the status of async searches 2024-04-02 09:35:02 +03:00
clear-scroll-api.asciidoc [DOCS] Fix case for 'Boolean' (#64299) 2020-10-29 09:04:43 -04:00
count.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
explain.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
field-caps.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
knn-search.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
multi-search-template-api.asciidoc Fix search template examples by removing params on put (#110660) 2024-07-10 07:32:58 -04:00
multi-search.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
point-in-time-api.asciidoc Adding support for allow_partial_search_results in PIT (#111516) 2024-08-26 12:56:08 +03:00
profile.asciidoc Adding aggregations support for the _ignored field (#101373) 2024-04-29 16:41:34 +02:00
rank-eval.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
render-search-template-api.asciidoc Fix search template examples by removing params on put (#110660) 2024-07-10 07:32:58 -04:00
retriever.asciidoc [8.x] Add a generic rescorer retriever based on the search request's rescore functionality (#119023) 2024-12-20 00:24:03 +11:00
rrf.asciidoc Updating retriever-examples documentation to run validation tests on the provided snippets (#116643) (#117760) 2024-11-30 00:14:48 +11:00
scroll-api.asciidoc [DOCS] Update alias references (#73427) 2021-05-27 16:00:57 -04:00
search-shards.asciidoc Remove trappy timeout from ClusterSearchShardsRequest (#111442) 2024-07-31 08:53:24 +01:00
search-template-api.asciidoc Fix search template examples by removing params on put (#110660) 2024-07-10 07:32:58 -04:00
search-vector-tile-api.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
search.asciidoc Fixed hyperlink in search.asciidoc (#115156) (#115248) 2024-10-22 02:52:26 +11:00
suggesters.asciidoc Remove 'under development' note in suggester docs (#84366) 2022-02-24 13:27:03 -08:00
terms-enum.asciidoc Limit _terms_enum prefix size (#97488) 2023-07-10 12:21:07 +02:00
validate.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00