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