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

Commit 0047f09

Browse files
authored
More minor language tweaks
1 parent aad510b commit 0047f09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/knn/knn-score-script.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ GET my-knn-index-2/_search
172172

173173
## Getting started with the score script for binary data
174174
The k-NN score script also allows you to run k-NN search on your binary data with the Hamming distance space.
175-
In order to use Hamming distance, the field of interest must be a field type of either `binary` or `long`. For binary type, the data should be a base64-encoded string.
175+
In order to use Hamming distance, the field of interest must have either a `binary` or `long` field type. If you're using `binary` type, the data must be a base64-encoded string.
176176

177177
This example shows how to use the Hamming distance space with a `binary` field type:
178+
178179
```json
179180
PUT my-index
180181
{
@@ -243,6 +244,7 @@ GET my-index/_search
243244
```
244245

245246
Similarly, you can encode your data with the `long` field and run a search:
247+
246248
```json
247249
GET my-long-index/_search
248250
{

0 commit comments

Comments
 (0)