Another route to getting the number of documents is to get it from the LukeRequestHandler:

http://localhost:8983/solr/admin/luke?numTerms=0 (numTerms=0 to get the fastest response possible)

  Erik





On Oct 10, 2007, at 10:19 AM, Stefan Rinner 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

Reply via email to