Skip to content

Commit

Permalink
Add KNN operator to the list of operators (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: Emmanuel Keller <[email protected]>
Co-authored-by: ekwuno <[email protected]>
  • Loading branch information
3 people authored Mar 8, 2024
1 parent 8facca5 commit 2790f9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion versioned_docs/version-nightly/surrealql/operators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ sidebar_position: 5
<td><a href="#matches"><code>@@</code> or <code>@[ref]@</code></a></td>
<td>Checks whether the terms are found in a full-text indexed field</td>
</tr>
<tr>
<td><a href="#KNN"><code> &lt;|4|&gt; </code> or <code>&lt;|3,HAMMING| &gt;</code></a></td>
<td>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>
</table>

Expand Down Expand Up @@ -777,4 +781,4 @@ ORDER BY score DESC;
]
```

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

0 comments on commit 2790f9e

Please sign in to comment.