After & before pagination

From facebook api:
before : This is the cursor that points to the start of the page of data that has been returned.
after : This is the cursor that points to the end of the page of data that has been returned.

in Elasticsearch it is possible to get items after cursor, but also it is possible to get items before cursor.
After can be done using "search_after". How to do search before?

You can only do that if you stored the values of search_after on the client side.

For anything else than deep pagination (where search after is really useful) you can just use from and size parameters.

But it is possible to implement "search_before" feature?

I see that you opened

@jimczi might tell if this is doable or not.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.