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 Jörg Kiegeland <ki...@ikv.de> on 2007/11/06 20:15:52 UTC
Where to set result limit using SolrServer interface?
I have a query
SolrServer server = getSolrServer();
SolrQuery solrQuery = new SolrQuery();
solrQuery.setQuery(..);
QueryResponse rsp = server.query(solrQuery);
Now where can I set the result limit for this query?
Another question : Where can I download the test cases for Solrj
mentioned in the Solr 1.3 wiki?
Thanks
Jörg
Re: Where to set result limit using SolrServer interface?
Posted by Ryan McKinley <ry...@gmail.com>.
Jörg Kiegeland wrote:
> I have a query
>
> SolrServer server = getSolrServer();
> SolrQuery solrQuery = new SolrQuery();
> solrQuery.setQuery(..);
> QueryResponse rsp = server.query(solrQuery);
>
> Now where can I set the result limit for this query?
>
solrQuery.setRows( # )
To see the javadocs, download a nightly from:
http://lucene.zones.apache.org:8080/hudson/job/Solr-Nightly/
and it will be in: /docs/api-solrj/
I just realized that these are not on-line like:
http://lucene.zones.apache.org:8080/hudson/job/Solr-Nightly/javadoc/
I'll look into getting that up.
> Another question : Where can I download the test cases for Solrj
> mentioned in the Solr 1.3 wiki?
>
They are included in the nightly builds or directly from svn:
http://svn.apache.org/repos/asf/lucene/solr/trunk/client/java/solrj/test/
- - - -
also, when you post messages to the mailing list, start a new thread
when you ask about a new topic. See hoss' note:
http://people.apache.org/~hossman/#threadhijack
ryan