Skip to content

Commit 98eb117

Browse files
committed
[DOC-10997] Fold in information from fts-pagination to prepare for deleting the page from builds. (#298)
1 parent c4b19b7 commit 98eb117

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/search/pages/search-request-params.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ For more information about how to configure Search query consistency inside the
4848
Set the total number of results to return for a single page of search results.
4949

5050
If you provide both the `size` and `limit` properties, the Search Service uses the `size` value.
51-
51+
5252
The Search Service returns the `size` number of results:
5353

5454
* Starting at the offset in the `from` or `offset` property.
@@ -144,6 +144,10 @@ You cannot use `search_after` with numbers or other field data types - if your `
144144
Only result relevancy score values can be entered as strings in the array.
145145

146146
The Search Service starts search result pagination after the document with the values you provide in the array.
147+
=======
148+
NOTE: If you use `search_after` in a search request, you cannot use `search_before`. Both properties are included in the example code to show the correct syntax.
149+
150+
Use `search_after` with `from/offset` and `sort` to control pagination in search results.
147151

148152
For example, if you had a set of 10 documents to sort based on `_id` values of 1-10, with `from` set to `2` and `search_after` set to `8`, documents 9-10 appear on the same page.
149153

0 commit comments

Comments
 (0)