Skip to content

Search pagination: document empty and short pages - #601

Merged
tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-search-pagination-next-token
Dec 2, 2026
Merged

tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-search-pagination-next-token

Conversation

@tcaldwell-x

Copy link
Copy Markdown
Collaborator

Clarifies how pagination ends for recent and full-archive search.

Developers sometimes stop paginating when a page comes back empty or short, which drops the rest of the result set. This adds an "Empty and short pages" section to the search pagination guide, plus a note in the search integration guide:

  • An empty or short page can still include next_token; keep paginating while it's present.
  • Only a missing next_token signals the end of results, and the final page itself may contain zero Posts.
  • Use sort_order=recency (the default) for complete historical collection.
  • Retry 5xx errors with the same next_token.

Files:

  • x-api/posts/search/integrate/paginate.mdx
  • x-api/posts/search/integrate/overview.mdx

Checks:

  • mint validate --no-build --disable unknown-component: passed
  • mint broken-links: no broken links in the touched files (2 existing broken links elsewhere: x-api/posts/filtered-stream/migrate/overview.mdx, x-api/posts/lookup/migrate/overview.mdx)

@mintlify

mintlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
x-corp 🟢 Ready View Preview Dec 2, 2026, 12:23 AM

@tcaldwell-x
tcaldwell-x marked this pull request as ready for review December 2, 2026 02:33
@tcaldwell-x
tcaldwell-x merged commit c9ee0ee into main Dec 2, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
staging — f9d10646 Deployed Dec 2, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant