Skip to content

Commit 5eb3afd

Browse files
committed
[NO ISSUE] Straightening out lots of merge conflicts and inconsistencies in search-request-params
1 parent 3d87bac commit 5eb3afd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ NOTE: If you use `search_after` in a search request, you cannot use `search_befo
136136

137137
Use `search_after` with `from/offset` and `sort` to control pagination in search results.
138138

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

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

147147
The Search Service starts search result pagination after the document with the values you provide in the array.
148148

@@ -162,7 +162,7 @@ Use `search_before` with `from/offset` and `sort` to control pagination in searc
162162

163163
Give a value for each string or JSON object in the <<sort_arr,sort array>> to the `search_before` array.
164164
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.
166166

167167
Values in the `search_before` array must be strings.
168168
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
172172

173173
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.
174174

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

178178
Use `search_before` to make the memory requirements of deeper page searches more manageable, when compared to using only `from`/`offset`.
179179
`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

Comments
 (0)