Skip to content

Commit

Permalink
Update operators.mdx (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwuno authored Mar 13, 2024
1 parent f5ae0ee commit 084cdd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions versioned_docs/version-1.x/surrealql/operators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ A variety of operators in SurrealQL allow for complex manipulation of data, and
<td scope="row" data-label="Description">Checks whether the terms are found in a full-text indexed field</td>
</tr>
<tr>
<td scope="row" data-label="Operator"><a href="#KNN"><code> &lt;|4|&gt; </code> or <code>&lt;|3,HAMMING| &gt;</code></a> <l className='purple'>Since 1.3.0</l></td>
<td scope="row" data-label="Operator"><a href="#knn-since-130"><code> &lt;|4|&gt; </code> or <code>&lt;|3,HAMMING| &gt;</code></a> <l className='purple'>Since 1.3.0</l></td>
<td scope="row" data-label="Description">Performs a K-Nearest Neighbors (KNN) search to find a specified number of records closest to a given data point, optionally using a defined distance metric. Supports customizing the number of results and choice of distance calculation method.</td>
</tr>
</tbody>
Expand Down Expand Up @@ -784,7 +784,7 @@ ORDER BY score DESC;
]
```

## `#KNN` {#KNN}
## `#KNN` <l className='purple'>Since 1.3.0</l>
Performs a K-Nearest Neighbors (KNN) search to find a specified number of records closest to a given data point, optionally using a defined distance metric. Supports customizing the number of results and choice of distance calculation method.

```surql
Expand All @@ -794,4 +794,4 @@ SELECT id, vector::distance::euclidean(point, [2,3,4,5]) AS dist FROM pts WHERE
SELECT id FROM pts WHERE point <|2|> [2,3,4,5] EXPLAIN;
```

<br /><br />
<br /><br />

0 comments on commit 084cdd2

Please sign in to comment.