Methods and computer-readable media provide for efficient paging of search
results in accordance with the access rights of a user. According to
various implementations, a request for a search query results in a
calculated number of search results being retrieved and analyzed for user
access rights. As documents having user access rights are located,
session state information corresponding to the number of located
documents having user access rights and to the number of analyzed
documents required to locate the number of documents having user access
rights is maintained. This information is used to dynamically alter the
number of subsequent documents that are retrieved in order to fill a page
of results. This minimizes redundant determinations of user access rights
and minimizes the number of documents required to be retrieved and
analyzed in order to fulfill a search query request.