Skip to content
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