You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by pof <Me...@gmail.com> on 2009/07/21 07:19:18 UTC

DocList Pagination

Hi, I am try to get the next DocList "page" in my custom search component.
Could I get a code example of this?

Cheers.
-- 
View this message in context: http://www.nabble.com/DocList-Pagination-tp24581850p24581850.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: DocList Pagination

Posted by Chris Hostetter <ho...@fucit.org>.
: Hi, I am try to get the next DocList "page" in my custom search component.
: Could I get a code example of this?

you just increase the "offset" value you pass to 
SolrIndexSearcher.getDocList by whatever your page size is.  (if you use 
the newer QueryCommand versions you just call setOffset with the same 
value).





-Hoss