How to use offset and limit in Solr

2009-06-11 Thread chem leakhina
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

2009-06-11 Thread Markus Jelsma - Buyways B.V.
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 ArchitectFriesestraatweg 215c Fax. 050-3118124
http://www.buyways.nl  9743 AD GroningenKvK  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

2009-06-11 Thread Avlesh Singh
Query Parameters:
start=yourOffsetValuerows=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 chem.leakh...@gmail.comwrote:

 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

2009-06-11 Thread chem leakhina
Thanks

On Thu, Jun 11, 2009 at 3:29 PM, Markus Jelsma - Buyways B.V. 
mar...@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 ArchitectFriesestraatweg 215c Fax. 050-3118124
 http://www.buyways.nl  9743 AD GroningenKvK  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