Skip to content

Commit b7e1694

Browse files
8.0 updates
1 parent ecd0e47 commit b7e1694

2 files changed

Lines changed: 52 additions & 3 deletions

File tree

modules/concept-docs/pages/durability-replication-failure-considerations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This page covers the durability options offered by Couchbase Server,
1919
with the rest of this section covering logging, health check, and observability --
2020
all key to understanding the health of a complex, distributed environment.
2121

22+
TIP: From Couchbase Server version 8.0 (including in Capella Operational), statistics from the SDK are collected automatically by the Cluster.
2223

2324

2425
include::{version-common}@sdk:shared:partial$durability-replication-failure-considerations.adoc[tag=intro]

modules/howtos/pages/vector-searching-with-sdk.adoc

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Hybrid searches can combine Vector, geo-spatial search, range search, and tradit
4343
////
4444

4545

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.
4747
Version 8.0 introduces vector query using Global Secondary Indexes (GSI), the query index --
4848
using either a fast Hyperscale index, or a composite index to combine scala queries with semantic search.
4949

@@ -79,6 +79,12 @@ wrapped inside the {name-sdk} Query API.
7979
.With Composite Vector Index
8080
[source,java]
8181
----
82+
// In process of fixing code samples
83+
----
84+
85+
86+
87+
////
8288
package com.couchbase.client.java.examples.query;
8389
8490
import com.couchbase.client.java.Bucket;
@@ -97,14 +103,20 @@ public class SimpleQueryExample {
97103
98104
}
99105
----
100-
106+
////
101107

102108

103109

104110

105111
.Hyperscale Index Example
106112
[source,java]
107113
----
114+
// In process of fixing code samples
115+
----
116+
117+
118+
119+
////
108120
import static com.couchbase.client.java.query.QueryOptions.queryOptions;
109121
110122
import com.couchbase.client.core.error.CouchbaseException;
@@ -146,7 +158,7 @@ public class SimpleQueryCloud {
146158
}
147159
// end::vector-hyperscale[]
148160
----
149-
161+
////
150162

151163

152164
== Vector Search With the Search Service
@@ -187,6 +199,42 @@ If it was a global index we would use `cluster.search()` instead - see <<Scoped
187199

188200
It returns the same `SearchResult` detailed earlier.
189201

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:
209+
210+
[source,json]
211+
----
212+
{
213+
"fields": ["artist", "song"],
214+
"knn": [{
215+
"filter": {
216+
"conjuncts": [{
217+
"match": "English",
218+
"filed": "language"
219+
}, {
220+
"min": 1990,
221+
"max": 2000,
222+
"inclusive_min": false,
223+
"inclusive_max": true,
224+
"field": "year"
225+
}]
226+
},
227+
"k": 5,
228+
"field": "music_vector",
229+
"vector": [0.024901132253900747, 1535 vectors removed]
230+
}],
231+
"explain": true,
232+
"size": 5,
233+
"from": 0
234+
}
235+
----
236+
237+
190238
==== Multiple vector queries
191239
You can run multiple vector queries together:
192240

0 commit comments

Comments
 (0)