Skip to content

Commit 15b3259

Browse files
Made changes and moved the TIP after the example as suggested by Richard
1 parent 9478fcc commit 15b3259

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ The Full Text Search service also supports vector search from Couchbase Server 7
1515

1616
== Getting Started
1717

18-
NOTE: By default, the Search Service limits to 10 results per query.
19-
If you do not provide a `from`, xref:search:search-request-params.adoc#size-limit[`size`], or other pagination settings in your query, the Search Service defaults to a `size` value of 10 and a `from` value of 0.
20-
This means the Search Service returns the first 10 matches to your query.
21-
22-
For information about formatting your Search query and specifying limits, see xref:server:search:search-request-params.adoc[].
23-
24-
For information about pagination in Search responses, see xref:server:fts:fts-search-response#pagination.adoc[Pagination].
25-
2618
After familiarizing yourself with how to create and query a Search index in the UI you can query it from the SDK.
2719

2820
There are two APIs for querying search: `cluster.searchQuery()`, and `cluster.search()`.
@@ -50,6 +42,17 @@ If something goes wrong during the execution of the search query, a subclass of
5042
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}}
5143
----
5244

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#pagination.adoc[Pagination].
54+
====
55+
5356
== Search Queries
5457

5558
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

Comments
 (0)