Skip to content

Commit fb798de

Browse files
authored
DOC-8186 Java FTS SDK Results Cap #478
Merge pull request from couchbase/DOC-8186_JAVA_FTS_SDK_Results_Cap
2 parents 0fe61d8 + 80a11c6 commit fb798de

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
= Search
2-
:description: You can use the Full Text Search service (FTS) to create queryable full-text indexes in Couchbase Server.
2+
:description: You can use the Search Service to create queryable full-text indexes in Couchbase Server.
33
:page-toclevels: 2
44
:page-aliases: ROOT:search-query.adoc, ROOT:full-text-searching-with-sdk.adoc
55

66
[abstract]
77
{description}
88

9-
Full Text Search or FTS allows you to create, manage and query full text 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.
1010
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.
1111

1212
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.
1313

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.
1515

1616
== Getting Started
1717

@@ -31,7 +31,7 @@ include::devguide:example$java/Search.java[tag=simple,indent=0]
3131
----
3232

3333
Let's break it down.
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
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
3535
(in the example above, no options are specified).
3636

3737
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
4242
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}}
4343
----
4444

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+
4556
== Search Queries
4657

4758
The second mandatory argument in the example above used `SearchQuery.queryString("query")` to specify the query to run against the search index.

preview/HEAD.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sources:
2+
docs-server:
3+
branches: release/8.0
4+
docs-devex:
5+
branches: release/8.0

0 commit comments

Comments
 (0)