You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/howtos/pages/vector-searching-with-sdk.adoc
+51-3Lines changed: 51 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Hybrid searches can combine Vector, geo-spatial search, range search, and tradit
43
43
////
44
44
45
45
46
-
Vector Search has been available in Couchbase Capella Operational and self-managed Server since version 7.6, using the COuchbase Server Search Service.
46
+
Vector Search has been available in Couchbase Capella Operational and self-managed Server since version 7.6, using the Couchbase Server Search Service.
47
47
Version 8.0 introduces vector query using Global Secondary Indexes (GSI), the query index --
48
48
using either a fast Hyperscale index, or a composite index to combine scala queries with semantic search.
49
49
@@ -79,6 +79,12 @@ wrapped inside the {name-sdk} Query API.
79
79
.With Composite Vector Index
80
80
[source,java]
81
81
----
82
+
// In process of fixing code samples
83
+
----
84
+
85
+
86
+
87
+
////
82
88
package com.couchbase.client.java.examples.query;
83
89
84
90
import com.couchbase.client.java.Bucket;
@@ -97,14 +103,20 @@ public class SimpleQueryExample {
@@ -146,7 +158,7 @@ public class SimpleQueryCloud {
146
158
}
147
159
// end::vector-hyperscale[]
148
160
----
149
-
161
+
////
150
162
151
163
152
164
== Vector Search With the Search Service
@@ -187,6 +199,42 @@ If it was a global index we would use `cluster.search()` instead - see <<Scoped
187
199
188
200
It returns the same `SearchResult` detailed earlier.
189
201
202
+
203
+
===== Pre-Filters
204
+
205
+
From Couchbase Server 7.6.4 -- and in Capella Operational clusters -- you can apply xref:server:vector-search:pre-filtering-vector-search.adoc#about-pre-filtering[pre-filtering with similarity search].
206
+
The current version of the {name-sdk} supports this.
207
+
208
+
This is applied to the search query sub-object within the knn array items for that vector query:
0 commit comments