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
The Search Service allows you to create, manage and query search indexes on JSON documents stored in Couchbase buckets.
9
+
The Search Service allows you to create, manage and query Search indexes on JSON documents stored in Couchbase buckets.
10
10
It uses natural language processing for indexing and querying documents, provides relevance scoring on the results of your queries and has fast indexes for querying a wide range of possible text searches.
11
11
12
12
Some of the supported query-types include simple queries like Match and Term queries, range queries like Date Range and Numeric Range and compound queries for conjunctions, disjunctions and/or boolean queries.
@@ -20,10 +20,10 @@ After familiarizing yourself with how to create and query a Search index in the
20
20
There are two APIs for querying search: `cluster.searchQuery()`, and `cluster.search()`.
21
21
Both are also available at the Scope level.
22
22
23
-
The former API supports search queries (`SearchQuery`), while the latter additionally supports the `VectorSearch` added in 7.6.
23
+
The former API supports Search queries (`SearchQuery`), while the latter additionally supports the `VectorSearch` added in 7.6.
24
24
Most of this documentation will focus on the former API, as the latter is in @Stability.Volatile status.
25
25
26
-
We will perform a search query here - see the xref:vector-searching-with-sdk.adoc[Vector Search] docs for examples of Vector and xref:vector-searching-with-sdk.adoc#combining-fts-and-vector-queries[combining Vector and Search queries].
26
+
We will perform a Search query here -- see the xref:vector-searching-with-sdk.adoc[Vector Search] docs for examples of Vector and xref:vector-searching-with-sdk.adoc#combining-fts-and-vector-queries[combining Vector and Search queries].
27
27
28
28
[source,java]
29
29
----
@@ -99,7 +99,7 @@ The `SearchRow` contains the following methods:
99
99
.SearchRow
100
100
[options="header"]
101
101
|====
102
-
| `index()` | The name of the search index that gave this result.
102
+
| `index()` | The name of the Search index that gave this result.
103
103
| `id()` | The id of the matching document.
104
104
| `score()` | The score of this hit.
105
105
| `explanation()` | If enabled provides an explanation in JSON form.
We create a `SearchRequest`, which can contain a traditional search query `SearchQuery` and/or the new `VectorSearch`.
140
+
We create a `SearchRequest`, which can contain a traditional Search query `SearchQuery` and/or the new `VectorSearch`.
141
141
Here we are just using the latter.
142
142
143
143
The `VectorSearch` allows us to perform one or more `VectorQuery` s.
@@ -146,7 +146,7 @@ The `VectorQuery` itself takes the name of the document field that contains embe
146
146
147
147
(Note that Couchbase itself is not involved in generating the vectors, and these will come from an external source such as an embeddings API.)
148
148
149
-
Finally we execute the `SearchRequest` against the search index "travel-sample-index", which has previously been setup to vector index the "vector_field" field.
149
+
Finally we execute the `SearchRequest` against the Search index "travel-sample-index", which has previously been setup to vector index the "vector_field" field.
150
150
151
151
This happens to be a scoped index so we are using `scope.search()`.
152
152
If it was a global index we would use `cluster.search()` instead - see <<Scoped vs Global Indexes>>.
0 commit comments