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

Improve SQL++ Vector example and make it work #166

Open
wants to merge 1 commit into
base: release/7.6
Choose a base branch
from
Open
Changes from all 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: 3 additions & 3 deletions modules/n1ql/pages/n1ql-language-reference/searchfun.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Also the supported type identifiers at the moment are "type_field" and "docid_pr

.Search against a Vector Search index for the closest 2 vectors
====
NOTE: This example does not use the travel sample data or query context mentioned before, as it requires documents that contain vector data.
NOTE: This example does not use the travel sample data or query context mentioned before, as it requires documents that contain vector data. The query context should be set to vector-sample and color.

.Query
[source,sqlpp]
Expand All @@ -397,8 +397,8 @@ WHERE SEARCH(t1,
"knn": [
{
"k": 2,
"field": "colorvect_dot",
"vector": [ 0.707106781186548, 0, 0.707106781186548 ]
"field": "colorvect_l2",
"vector": [ 192, 0, 191 ]
}
]
}
Expand Down