Custom pruning strategy with SearcherLifetimeManager

2017-11-24 Thread ivan cruces
Hi, I am using SearcherLifetimeManager to implement pagination. The built-in pruner PruneByAge doesn’t fit in my application as it doesn’t take into account the last time each searcher was used. I am trying to imlement a custom pruning strategy that prunes a searcher based on the last time it was

Re: Lucene pagination using searchAfter while index is updated

2017-11-17 Thread ivan cruces
oken.html < > http://blog.mikemccandless.com/2011/11/searcherlifetimemanager- > prevents-broken.html> > > Alan Woodward > www.flax.co.uk > > > > On 17 Nov 2017, at 08:30, ivan cruces > wrote: > > > > Hi, > > > > I have implemented pagination w

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