This is exactly what searchAfter is for ("deep paging"). Mike McCandless
http://blog.mikemccandless.com On Mon, Feb 17, 2014 at 3:12 PM, saisantoshi <saisantosh...@gmail.com> wrote: > The collector is collecting all the documents. Let's say I have 50k documents > and I want the collector to give me the results taking the start and > maxHits. Can we get this functionality from Lucene? For example, very first > time, I want to collect from 0 -100 & the next time I want to collect from > 100 - 200. What the collector seems to do right now is collecting all the > 200 documents and giving me the 100. Can we have the collector do it > intelligently by remembering the old search results and run the collector > for the next 100 only. > > Thanks, > Sai. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Collector-is-collecting-more-than-the-specified-hits-tp4117329p4117858.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org