Re: How to get Total Result count using searchAfter approach

2013-10-17 Thread Michael McCandless
You can still use TopDocs.totalHits from searchAfter; that will be correct. Providing "Last" with searchAfter is not really possible; it's also somewhat strange (does anybody really use that?). Maybe you could reverse your sort, take page 1, reverse its hits? Mike McCandless http://blog.mikemcc

How to get Total Result count using searchAfter approach

2013-10-17 Thread raghavendra.k.rao
Hi, In my current implementation of Lucene 4.3 where there are millions of indexed records, I do a regular search() and get the topDocs.totalHits as the count of results. As part of this, I store all the results in the session and then let the user paginate through the results. With this, I am