There is no way to know without doing the search. Using rows=0 you are really just avoiding getting the actual hits in the response.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: solr_user <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Wednesday, May 14, 2008 8:33:18 PM > Subject: Re: result count query > > > Thanks Otis, > > Actually what I really want to do is just check whether the query is going > to return any results or not. I tried the rows=0 thing and that works quite > efficiently. Just wondering if there is anything even more efficient then > that that will answer whether the query has any hits or not. > > Solr-user > > > Otis Gospodnetic wrote: > > > > I think specifying rows=0 in the URL gets you that number without giving > > you the actual results. > > > > > > Otis > > -- > > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > > > ----- Original Message ---- > >> From: solr_user > >> To: solr-user@lucene.apache.org > >> Sent: Wednesday, May 14, 2008 4:53:05 PM > >> Subject: result count query > >> > >> > >> Hi, > >> > >> Is there an efficient way to just get the result count of a query > >> issued > >> to Solr? > >> > >> Solr-user > >> -- > >> View this message in context: > >> http://www.nabble.com/result-count-query-tp17240159p17240159.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > > > > > > > > -- > View this message in context: > http://www.nabble.com/Re%3A-result-count-query-tp17240818p17243737.html > Sent from the Solr - User mailing list archive at Nabble.com.