Skip to content

Commit 58fc230

Browse files
!Vector
1 parent dc89e9f commit 58fc230

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

modules/howtos/pages/full-text-searching-with-sdk.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,16 @@ This is because FTS supports, as of Couchbase Server 7.6, a new form of "scoped
110110

111111
It's important to use the `Cluster.searchQuery()` or `Cluster.search()` for global indexes, and `Scope.search()` for scoped indexes.
112112

113+
114+
////
113115
== Vector Search
114116
As of Couchbase Server 7.6, the FTS service supports vector search in additional to traditional full text search queries.
115117
// todo link to the server docs when available
116118
117119
=== Examples
118120
==== Single vector query
119121
In this first example we are performing a single vector query:
122+
120123
[source,java]
121124
----
122125
include::devguide:example$java/Search.java[tag=vector1,indent=0]
@@ -158,9 +161,10 @@ include::devguide:example$java/Search.java[tag=vector2,indent=0]
158161
----
159162
160163
How the results are combined (ANDed or ORed) can be controlled with `vectorSearchOptions().vectorQueryCombination()`.
164+
////
161165

162-
==== FTS queries
163-
And note that traditional FTS queries, without vector search, are also supported with the new `cluster.search()` / `scope.search()` APIs:
166+
// ==== FTS queries
167+
// And note that traditional FTS queries, without vector search, are also supported with the new `cluster.search()` / `scope.search()` APIs:
164168

165169
[source,java]
166170
----
@@ -169,6 +173,7 @@ include::devguide:example$java/Search.java[tag=vector4,indent=0]
169173

170174
The `SearchQuery` is created in the same way as detailed earlier.
171175

176+
172177
== Search Options
173178

174179
The Search Service provides an array of options to customize your query. The following table lists them all:

0 commit comments

Comments
 (0)