the returned XML contains numFound which gives you the number of documents:
<result name="response" numFound="399" start="0"> If you're using SolrJ client, SolrDocumentList.getNumFound() will return the total number of results. On Sat, Apr 19, 2008 at 11:07 AM, surfer10 <[EMAIL PROTECTED]> wrote: > > i've explained my goal not clearly enougth. > > I want to get TOTAL NUMBER of hits. Hits by themselves is not nessecary - > i > know that i can control them by start & num parameters. But how can i get > the number of document matched by query? > > > Erik Hatcher wrote: > > > > > > On Apr 18, 2008, at 2:04 AM, surfer10 wrote: > >> > >> I'm using solr and unable to manage total number of document > >> returned by > >> search? > >> > >> how can i do this? > > > > &rows=37 > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/how-to-get-total-hits-for-the-request--tp16760375p16770849.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.