I think search for "*:*" is the optimal code to do it. I don't think you can do anything faster.
On 10/11/07, Stefan Rinner <[EMAIL PROTECTED]> wrote: > > Hi > > for some tests I need to know how many documents are stored in the > index - is there a fast & easy way to retrieve this number (instead > of searching for "*:*" and counting the results)? > I already took a look at the stats.jsp code - but there the number of > documents is retrieved via an api call to SolrInfoRegistry and not > the webservice. > > thanks > > - stefan > -- Regards, Cuong Hoang