I meant, available in total, not what just what satisfies the particular query 

you should have at least an estimate of the amount of total documents, even if 
it grows daily 

and if you are talking about millions of rows, and you are try to retrieve them 
all, IMHO, not getting all of them will be the least of your problems 


----- Original Message ----- 
From: "egon o" <ego...@gmx.de> 
To: solr-user@lucene.apache.org 
Sent: Wednesday, 10 February, 2010 3:06:25 PM 
Subject: Re: How to not limit maximum number of documents? 

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 

Reply via email to