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 chem leakhina <ch...@gmail.com> on 2009/06/11 10:23:11 UTC

How to use offset and limit in Solr

Hi

How can I use offset or limit in Solr?
Could you give some examples?

Best regards,
LEE

Re: How to use offset and limit in Solr

Posted by Avlesh Singh <av...@gmail.com>.
Query Parameters:
start=yourOffsetValue&rows=yourLimitValue

If you use a SolrJ client:
SolrQuery query = new SolrQuery();
query.setQuery(yourQuery);
query.setRows(yourLimitValue);
query.setStart(yourOffsetValue);

Cheers
Avlesh

On Thu, Jun 11, 2009 at 1:53 PM, chem leakhina <ch...@gmail.com>wrote:

> Hi
>
> How can I use offset or limit in Solr?
> Could you give some examples?
>
> Best regards,
> LEE
>

Re: How to use offset and limit in Solr

Posted by chem leakhina <ch...@gmail.com>.
Thanks

On Thu, Jun 11, 2009 at 3:29 PM, Markus Jelsma - Buyways B.V. <
markus@buyways.nl> wrote:

> Use start and rows instead. See the common query parameters
>
> http://wiki.apache.org/solr/CommonQueryParameters
>
> -
> Markus Jelsma                  Buyways B.V.             Tel. 050-3118123
> Technisch Architect            Friesestraatweg 215c     Fax. 050-3118124
> http://www.buyways.nl          9743 AD Groningen        KvK  01074105
>
>
> On Thu, 2009-06-11 at 15:23 +0700, chem leakhina wrote:
>
> > Hi
> >
> > How can I use offset or limit in Solr?
> > Could you give some examples?
> >
> > Best regards,
> > LEE
>

Re: How to use offset and limit in Solr

Posted by "Markus Jelsma - Buyways B.V." <ma...@buyways.nl>.
Use start and rows instead. See the common query parameters

http://wiki.apache.org/solr/CommonQueryParameters

-  
Markus Jelsma                  Buyways B.V.             Tel. 050-3118123
Technisch Architect            Friesestraatweg 215c     Fax. 050-3118124
http://www.buyways.nl          9743 AD Groningen        KvK  01074105


On Thu, 2009-06-11 at 15:23 +0700, chem leakhina wrote:

> Hi
> 
> How can I use offset or limit in Solr?
> Could you give some examples?
> 
> Best regards,
> LEE