elasticsearch/docs/reference/rest-api
Benjamin Trent f23b906891
Add new similarity field to knn clause in _search (#94828)
This adds a new parameter to `knn` that allows filtering nearest neighbor results that are outside a given similarity.

`num_candidates` and `k` are still required as this controls the nearest-neighbor vector search accuracy and exploration. For each shard the query will search `num_candidates` and only keep those that are within the provided `similarity` boundary, and then finally reduce to only the global top `k` as normal.

For example, when using the `l2_norm` indexed similarity value, this could be considered a `radius` post-filter on `knn`.

relates to: https://github.com/elastic/elasticsearch/issues/84929 && https://github.com/elastic/elasticsearch/pull/93574
2023-03-28 15:29:01 -04:00
..
common-options.asciidoc Typo in example of the filter_path option (#84551) (#84661) 2022-03-04 09:10:55 -05:00
common-parms.asciidoc Add new similarity field to knn clause in _search (#94828) 2023-03-28 15:29:01 -04:00
cron-expressions.asciidoc [DOCS] Add info about GET/POST to the API conventions. (#74529) 2021-06-30 09:24:42 -07:00
defs.asciidoc [DOCS] Fine-tunes data frame analytics API docs formatting. (#50799) 2020-01-09 16:21:01 +01:00
index.asciidoc Introduce a _lifecycle/explain API for data stream backing indices (#94621) 2023-03-27 08:44:40 +01:00
info.asciidoc Feature usage actions for archive (#83931) 2022-02-16 08:31:41 +01:00
rest-api-compatibility.asciidoc [DOCS] Link to the 7.17 upgrade assistant docs (#83613) (#83615) 2022-02-07 18:29:26 -05:00
usage.asciidoc Expose Health Api telemetry via xpack (#91708) 2023-01-04 14:34:29 +01:00