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
Full Text Search or FTS allows you to create, manage and query fulltext indexes on JSON documents stored in Couchbase buckets.
9
+
The Search Service allows you to create, manage and query full-text 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.
13
13
14
-
The Full Text Search service also supports vector search from Couchbase Server 7.6 onwards.
14
+
The Search Service also supports vector search from Couchbase Server 7.6 onwards.
The `searchQuery` API takes the name of the index and the type of query as required arguments and then allows to provide additional options if needed
34
+
The `searchQuery` API takes the name of the index and the type of query as required arguments and then allows to provide additional options if needed
35
35
(in the example above, no options are specified).
36
36
37
37
Once a result returns you can iterate over the returned rows, and/or access the `SearchMetaData` associated with the query.
@@ -42,6 +42,17 @@ If something goes wrong during the execution of the search query, a subclass of
42
42
Exception in thread "main" com.couchbase.client.core.error.IndexNotFoundException: Index not found {"completed":true,"coreId":1,"httpStatus":400,"idempotent":true,"lastDispatchedFrom":"127.0.0.1:53818","lastDispatchedTo":"127.0.0.1:8094","requestId":3,"requestType":"SearchRequest","service":{"indexName":"unknown-index","type":"search"},"status":"INVALID_ARGS","timeoutMs":75000,"timings":{"dispatchMicros":18289,"totalMicros":1359398}}
43
43
----
44
44
45
+
[TIP]
46
+
.Search Results Limit
47
+
====
48
+
By default, the Search Service returns only the first 10 matches (`size: 10`, `from: 0`).
49
+
To retrieve more results, you must explicitly define pagination settings such as `size` or `from` in your query.
50
+
51
+
For information about formatting your Search query and specifying limits, see xref:server:search:search-request-params.adoc[].
52
+
53
+
For information about pagination in Search responses, see xref:server:fts:fts-search-response.adoc#pagination[Pagination].
54
+
====
55
+
45
56
== Search Queries
46
57
47
58
The second mandatory argument in the example above used `SearchQuery.queryString("query")` to specify the query to run against the search index.
0 commit comments