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

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
That method is for your situation.See the javadoc api for more details. searchAfter publicTopDocs searchAfter(ScoreDoc

Re: Lucene Pagination with Query

2012-05-12 Thread Yogesh patel
But is it possible to get results from between 200 to 300 documents with lucene query when i click on third page number? On Sat, May 12, 2012 at 4:47 PM, janwen wrote: > Yes.You can use the method: > > publicTopFieldDocs apache/lucene/sea

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
Yes.You can use the method: publicTopFieldDocs search(Query query, Filter

Re: Re: Lucene pagination

2011-11-20 Thread janwen
Lucene pagination really need to import.There is no search app that do not need to pagination function. 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in

Re: Re: Lucene pagination

2011-11-20 Thread janwen
Waiting for the new API3.5 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in 3.5.0 there is a new API in IndexSearcher: searchAfter. It enables you to

Re: Lucene pagination

2011-11-15 Thread Michael McCandless
Also, in 3.5.0 there is a new API in IndexSearcher: searchAfter. It enables you to efficiently collect hits only after the previous last page's last hit. It should be faster, in proportion to how deeply you page... but most apps do not need to do deep paging so simply collecting all hits up throu

Re: Lucene pagination

2011-11-15 Thread Ian Lea
The latter: do the search again and grab the chunk you want. Best not to open the index each time if you can avoid it. http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_implement_paging.2C_i.e._showing_result_from_1-10.2C_11-20_etc.3F -- Ian. On Tue, Nov 15, 2011 at 12:05 PM, Felipe Carval