getting all rows from SOLRJ client using setRows method

2009-05-21 Thread darniz

Hello 
is there a way you can get all the results back from SOLR when querying
solrJ client

my gut feeling was that this might work
query.setRows(-1)

The way is to change the configuration xml file, but that like hard coding
the configuration, and there also i have to set some valid number, i cant
say return all rows.

Is there a way to done through query.

Thanks
rashid


-- 
View this message in context: 
http://www.nabble.com/getting-all-rows-from-SOLRJ-client-using-setRows-method-tp23662668p23662668.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: getting all rows from SOLRJ client using setRows method

2009-05-21 Thread Ryan McKinley


careful what you ask for...  what if you have a million docs?  will  
you get an OOM?


Maybe a better solution is to run a loop where you grab a bunch of  
docs and then increase the start value.


but you can always use:
query.setRows( Integer.MAX_VALUE )

ryan


On May 21, 2009, at 8:37 PM, darniz wrote:



Hello
is there a way you can get all the results back from SOLR when  
querying

solrJ client

my gut feeling was that this might work
query.setRows(-1)

The way is to change the configuration xml file, but that like hard  
coding
the configuration, and there also i have to set some valid number, i  
cant

say return all rows.

Is there a way to done through query.

Thanks
rashid


--
View this message in context: 
http://www.nabble.com/getting-all-rows-from-SOLRJ-client-using-setRows-method-tp23662668p23662668.html
Sent from the Solr - User mailing list archive at Nabble.com.