[
https://issues.apache.org/jira/browse/SOLR-17786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131978#comment-18131978
]
Nick Shanin commented on SOLR-17786:
------------------------------------
Hi [~houston],
I built the feature on top of your PR and posted a detailed comment there. If
you prefer, I can open a new PR for your approval. Thank you for contributing
this.
> Support reverse pagination with cursorMark
> ------------------------------------------
>
> Key: SOLR-17786
> URL: https://issues.apache.org/jira/browse/SOLR-17786
> Project: Solr
> Issue Type: New Feature
> Reporter: Houston Putman
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently cursorMark can be used to do deep paging of results, however, if
> one wants to support "previous page" functionality, they would need to store
> the previous cursorMark results. Given that we can reverse the sort, we
> should be able to execute a "reverseCursorMark".
> The idea here would be to add another response in addition to
> "nextCursorMark", "previousCursorMark", which would be the cursorMark of the
> first result. Users could then pass in this "previousCursorMark" to the
> "reverseCursorMark" parameter, much like they pass "nextCursorMark" to the
> "cursorMark" parameter. Then the results would be the regular sorted (not
> reverse sorted) set of results, with another "previousCursorMark" and
> "nextCursorMark" provided.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]