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
Copy file name to clipboardExpand all lines: modules/search/pages/search-request-params.adoc
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,13 +136,13 @@ NOTE: If you use `search_after` in a search request, you cannot use `search_befo
136
136
137
137
Use `search_after` with `from/offset` and `sort` to control pagination in search results.
138
138
139
-
Give a value for each string or JSON object in the <<sort_arr,sort array>> to the `search_after` array.
140
-
You must provide the values in the same order that they appear in the `sort` array.
141
-
Your `sort` array must force a total order on your search results.
139
+
Give a value for each string or JSON object in the <<sort_arr,sort array>> to the `search_after` array.
140
+
You must provide the values in the same order that they appear in the <<sort_arr,sort array>>.
141
+
Your `sort` array must force a total order on your search results.
142
142
143
-
Values in the `search_after` array must be strings.
144
-
You cannot use `search_after` with numbers or other field data types - if your `sort` array includes fields with a date or number type, you cannot use `search_after`.
145
-
Only result relevancy score values can be entered as strings in the array.
143
+
Values in the `search_after` array must be strings.
144
+
You cannot use `search_after` with numbers or other field data types - if your `sort` array includes fields with a `date` or `number` type, you cannot use `search_after`.
145
+
Only result relevancy score values can be entered as strings in the array.
146
146
147
147
The Search Service starts search result pagination after the document with the values you provide in the array.
148
148
@@ -162,7 +162,7 @@ Use `search_before` with `from/offset` and `sort` to control pagination in searc
162
162
163
163
Give a value for each string or JSON object in the <<sort_arr,sort array>> to the `search_before` array.
164
164
You must provide the values in the same order that they appear in the `sort` array.
165
-
Your `sort` array must force a total order on your search results.
165
+
Your `sort` array must force a total order on your search results.
166
166
167
167
Values in the `search_before` array must be strings.
168
168
You cannot use `search_before` with numbers or other field data types - if your `sort` array includes fields with a date or number type, you cannot use `search_before`.
@@ -172,8 +172,8 @@ The Search Service starts search result pagination before the document with the
172
172
173
173
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_before` set to `8`, documents 2-6 appear on the same page.
174
174
175
-
To reduce the resource costs of deeper pagination on your Search queries, try to always include your document ID values as the final sort criteria in your `sort` array.
176
-
Set the `search_before` property to include the values from the last result on your previous page of search results to effectively paginate.
175
+
To reduce the resource costs of deeper pagination on your Search queries, try to always include your document ID values as the final sort criteria in your `sort` array.
176
+
Set the `search_before` property to include the values from the last result on your previous page of search results to effectively paginate.
177
177
178
178
Use `search_before` to make the memory requirements of deeper page searches more manageable, when compared to using only `from`/`offset`.
179
179
`search_before` lets you start your search results back from a specific result, rather than needing to process a number of search results to skip.
0 commit comments