Re: Lucene pagination using searchAfter while index is updated

2017-11-17 Thread ivan cruces
Thanks!, it seems to be the way to go. On Fri, Nov 17, 2017 at 10:05 AM, Alan Woodward wrote: > You can use SearcherLifetimeManager to keep track of specific > IndexSearcher instances - see Mike’s blog at http://blog.mikemccandless. > com/2011/11/searcherlifetimemanager-prevents-broken.html < >

Re: Lucene pagination using searchAfter while index is updated

2017-11-17 Thread Alan Woodward
You can use SearcherLifetimeManager to keep track of specific IndexSearcher instances - see Mike’s blog at http://blog.mikemccandless.com/2011/11/searcherlifetimemanager-prevents-broken.html Alan Woodward www

Lucene pagination using searchAfter while index is updated

2017-11-17 Thread ivan cruces
Hi, I have implemented pagination with Lucene using the searchAfter method provided by IndexSearcher. In every call, I pass the last ScoreDoc returned in the previous page. The problem is that sometimes, the index gets updated between page and page and occasionally I am getting this exception: j

Re: Pagination using searchAfter

2015-09-04 Thread Chris Hostetter
: 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 v

Re: Pagination using searchAfter

2015-09-04 Thread jamie
Ganesh I would advise to consult Lucene user group archives. I asked a similar question a while back, and it was addressed. Cheers Jamie On 2015/09/04 4:56 PM, Ganesh wrote: Hi I want to use the searchAfter API in IndexSearcher. This API takes ScoreDoc as argument. Do we need to store the

Pagination using searchAfter

2015-09-04 Thread Ganesh
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

Pagination using searchAfter

2015-09-04 Thread Ganesh
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)? I guess, docid value is not valid when the IndexReader is reopened. We have multiple users simultaneously querying the