Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KNN operator to the list of operators #381

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Changes from 2 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
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><|4|></code> or <code><|3,HAMMING|></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 />