Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/knn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ POST _bulk

```

Finally, use the `script_store` query to pre-filter your documents before identifying nearest neighbors:
Finally, use the `script_score` query to pre-filter your documents before identifying nearest neighbors:

```json
GET my-knn-index-2/_search
Expand Down Expand Up @@ -199,7 +199,10 @@ GET my-knn-index-2/_search
All parameters are required.

- `lang` is the script type. This value is usually `painless`, but here you must specify `knn`.
- `source` is the name of the stored script, `knn_store`.
- `source` is the name of the script, `knn_store`.

This script is part of the KNN plugin and isn't available at the standard `_scripts` path. A GET request to `_cluster/state/metadata` doesn't return it, either.

- `field` is the field that contains your vector data.
- `vector` is the point you want to find the nearest neighbors for.
- `space_type` is either `l2` or `cosinesimil`.
Expand Down
111 changes: 0 additions & 111 deletions docs/sql/window.md

This file was deleted.