Skip to content
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

Updates Pagination Doc for Elasticsearch based on customer feedback. #2505

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions site/docs/v1/tech/shared/_paginating-search-results.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ while (count > 0) {
You may also set `numberOfResults` to a higher number (500 or 5000, for example) to retrieve more results.
However, processing results 25 or 50 at a time has less impact on the FusionAuth system.

When executing a paginated search, please also set `sortFields` -- this ensures your pagination results remain consistent form query to query.

[source,json,title="Example sort field of 'id'"]
----
"sortFields": [
{
"name": "id"
}
]
----
Loading