Solr will not do this efficiently. Getting all rows will be very slow. Adding a parameter will not make it fast.
Why do you want to do this? wunder On Feb 10, 2010, at 7:06 AM, ego...@gmx.de wrote: > Setting the 'rows' parameter to a number larger than the number of documents > available requires that you know how much are available. That's what I > intended to retrieve via the LukeRequestHandler. > > Anyway, nice approach Stefan. I'm afraid I forgot this 'numFound' aspect. :) > But still, it feels like a hack. Originally I was searching more for > something like: > > q=<query>&rows=-1 > > Which leaves the API to do the job (efficiently!). :) > The question is: > Does Solr support something? Or should we write a feature request? > > Cheers, > Egon > > > > -------- Original-Message -------- >> Datum: Wed, 10 Feb 2010 14:38:51 +0000 (GMT) >> Von: Ron Chan <rc...@i-tao.com> >> An: solr-user@lucene.apache.org >> Betreff: Re: How to not limit maximum number of documents? > >> just set the rows to a very large number, larger than the number of >> documents available >> >> useful to set the fl parameter with the fields required to avoid memory >> problems, if each document contains a lot of information >> >> >> ----- Original Message ----- >> From: "stefan maric" <stefan.ma...@bt.com> >> To: solr-user@lucene.apache.org >> Sent: Wednesday, 10 February, 2010 2:14:05 PM >> Subject: RE: How to not limit maximum number of documents? >> >> Egon >> >> If you first run your query with q=<query>&rows=0 >> >> Then your you get back an indication of the total number of docs >> <result name="response" numFound="53" start="0"/> >> >> Now your app can query again to get 1st n rows & manage forward|backward >> traversal of results by subsequent queries >> >> >> >> Regards >> Stefan Maric > -- > NEU: Mit GMX DSL über 1000,- ¿ sparen! > http://portal.gmx.net/de/go/dsl02 >