Getting from in search response

Previously we were using the solr, now we migrated to elastic search. We are using basic pagination with rows, offset.

In solr from search response we can get the offset value we used for that query by using
#SolrDocumentList.getStart() which we used to return to the client as start index and based on the number of results in the response we used to compute end index (start index + size) and return it to the caller.

We want to maintain the same contract now also even though we change to elastic search.
From elastic search response is there any way to get the "from" value?

I don't think you can.
But as you are sending it part of the request, it should not be hard to know what you actually sent.

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