Ah, so that is what that setRows method does. Would there be a problem with
setting it to Integer.MAX_VALUE since I don't know how many results I will
have in advance?




Otis Gospodnetic wrote:
> 
> I don't have the sources in front of me, but isn't there a setRows(int)
> method that you can call before running the query?
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> ----- Original Message ----
> From: oleg_gnatovskiy <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Friday, March 7, 2008 9:07:18 PM
> Subject: Solr-J problem
> 
> 
> Hello. I just started using solrJ recently and ran into a problem. I
> execute
> the following line after creating a SolrQuery: SolrDocumentList
> solrResults
> = engine.query(solrQuery).getResults();. solrResults.size() is always 10,
> while solrResults.getNumFound() varies based on the query. My question is,
> how do I get access to the entire result set? Why do I only get a list of
> the first 10? Any help would be greatly appreciated.
> -- 
> View this message in context:
> http://www.nabble.com/Solr-J-problem-tp15910308p15910308.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Solr-J-problem-tp15910308p15972409.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to