lucene-java-user mailing list archives

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

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.

Regards
Ganesh

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message