From 45612077132987ecc66ffb1235fa41fb10e8ac06 Mon Sep 17 00:00:00 2001 From: Jon Strabala <54073900+jon-strabala@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:15:26 -0700 Subject: [PATCH] Improve and make work Set the query context for scope and collection Use the same dataset that pendo loads (we dropped colorvect_dot) --- modules/n1ql/pages/n1ql-language-reference/searchfun.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/n1ql/pages/n1ql-language-reference/searchfun.adoc b/modules/n1ql/pages/n1ql-language-reference/searchfun.adoc index 1380ce855..bf1d2210c 100644 --- a/modules/n1ql/pages/n1ql-language-reference/searchfun.adoc +++ b/modules/n1ql/pages/n1ql-language-reference/searchfun.adoc @@ -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] @@ -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 ] } ] }