lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganesh <>
Subject Pagination using searchAfter
Date Fri, 04 Sep 2015 14:56:57 GMT

I want to use the searchAfter API in IndexSearcher. This API takes 
ScoreDoc as argument. Do we need to store the last ScoreDoc value 
(ScoreDoc value from previous search)? When multiple users perform 
search, then it might be difficult to store the last ScoreDoc value.

I guess, docid value is not valid when the IndexReader is reopened. We 
have multiple users simultaneously querying the index. Every minute the 
IndexReader will be reopened.

public TopDocs searchAfter(ScoreDoc after,  Query query, int numHits) 
throws IOException

Please let me know how to handle this.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message