Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 758c322

Browse files
committed
Ashwin suggestion
1 parent d6bfeba commit 758c322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/knn/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Short for its associated *k-nearest neighbors* algorithm, the KNN plugin lets yo
1313

1414
## Get started
1515

16-
To use the KNN query type, you must create an index with `index.knn: true` and add one or more fields of the `knn_vector` data type. Additionally, you can specify the `index.knn.space_type` parameter with `l2` or `cosinesimil` to use, respectively, either Euclidean distance or cosine similarity for calculations. By default, `index.knn.space_type` is `l2`. Here is an example that creates an index with two `knn_vector` fields and uses cosine similarity:
16+
To use the KNN query type, you must create an index with `index.knn: true` and add one or more fields of the `knn_vector` data type. Additionally, you can specify the `index.knn.space_type` parameter with `l2` to use Euclidean distance or `cosinesimil` to use cosine similarity for calculations. By default, `index.knn.space_type` is `l2`. Here is an example that creates an index with two `knn_vector` fields and uses cosine similarity:
1717

1818
```json
1919
PUT my-knn-index-1

0 commit comments

Comments
 (0)