lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Rowe <sar...@gmail.com>
Subject Re: does Lucene 5 provide a direct way to do paging on search result
Date Mon, 22 Jun 2015 14:23:59 GMT
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 <solmaz.oskouii@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


Mime
View raw message