You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by solmaz oskouii <so...@gmail.com> on 2015/06/22 13:46:55 UTC
does Lucene 5 provide a direct way to do paging on search result
Hi
does Lucene provide a direct way to do paging on search result without
any more coding just using Lucene 's API?
links below show how to make paging on search results after do search(use
indexSearch API)
http://hrycan.com/2010/02/10/paginating-lucene-search-results/
http://stackoverflow.com/questions/963781/how-to-achieve-pagination-in-lucene
now my question is this
has Lucene it's own APIs for do that during searching ?
thanks in advance
Re: does Lucene 5 provide a direct way to do paging on search result
Posted by Steve Rowe <sa...@gmail.com>.
Hi solmaz,
IndexSearcher.searchAfter() (several variants) can be used to do (deep) paging - here’s one of them: <http://lucene.apache.org/core/5_2_1/core/org/apache/lucene/search/IndexSearcher.html#searchAfter(org.apache.lucene.search.ScoreDoc,%20org.apache.lucene.search.Query,%20int)>
Steve
> On Jun 22, 2015, at 7:46 AM, solmaz oskouii <so...@gmail.com> wrote:
>
> Hi
> does Lucene provide a direct way to do paging on search result without
> any more coding just using Lucene 's API?
>
> links below show how to make paging on search results after do search(use
> indexSearch API)
>
> http://hrycan.com/2010/02/10/paginating-lucene-search-results/
> http://stackoverflow.com/questions/963781/how-to-achieve-pagination-in-lucene
>
> now my question is this
> has Lucene it's own APIs for do that during searching ?
>
> thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org