-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Add search pagination docs #56785
[DOCS] Add search pagination docs #56785
Conversation
Reworks the `from / size` content to `Paginate search results`. Moves those docs from the request body search API page (slated for deletion) to the `Run a search` tutorial docs. Also adds some notes to the `from` and `size` param docs.
Pinging @elastic/es-search (:Search/Search) |
Pinging @elastic/es-docs (>docs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments--the wording of the offset piece, in particular, definitely needs to be changed.
[IMPORTANT] | ||
==== | ||
The combined document count, including offset and and returned documents, for | ||
the `from` and `size` parameters cannot exceed the | ||
<<index-max-result-window,`index.max_result_window`>> index setting, which | ||
defaults to 10,000 documents. | ||
==== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the point here is that by default, you can page through a maximum of 10,000 documents. I'd say that, and then xref the settings, but probably not as a note. Instead,
I'd pull some of the cautionary info about deep paging into an important note from the definitive guide.
@@ -87,6 +87,14 @@ both parameters are specified, only the query parameter is used. | |||
include::{docdir}/rest-api/common-parms.asciidoc[tag=from] | |||
+ | |||
-- | |||
[IMPORTANT] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some combo of only being able to page through 10k docs by default and the warning about deep paging would need to go replace these admonitions, as well.
Co-authored-by: debadair <debadair@elastic.co>
Co-authored-by: debadair <debadair@elastic.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thanks! |
Reworks the `from / size` content to `Paginate search results`. Moves those docs from the request body search API page (slated for deletion) to the `Run a search` tutorial docs. Also adds some notes to the `from` and `size` param docs. Co-authored-by: debadair <debadair@elastic.co>
Reworks the `from / size` content to `Paginate search results`. Moves those docs from the request body search API page (slated for deletion) to the `Run a search` tutorial docs. Also adds some notes to the `from` and `size` param docs. Co-authored-by: debadair <debadair@elastic.co>
Reworks the `from / size` content to `Paginate search results`. Moves those docs from the request body search API page (slated for deletion) to the `Run a search` tutorial docs. Also adds some notes to the `from` and `size` param docs. Co-authored-by: debadair <debadair@elastic.co>
Reworks the
from / size
content toPaginate search results
.Moves those docs from the
Request body search
API docs page(slated for deletion) to the
Run a search
tutorial docs.Also adds some notes to the
from
andsize
param docs.Because this involves redirects, I only plan to merge intoI'll be backporting to all maintained branches.master
.Relates to #48194