: I want to programmatically retrieve the number of indexed documents. I.e., get the value of numDocs.
Index level stats like this can be fetched from the LukeRequestHandler in
any recent version of SOlr...
http://localhost:8983/solr/admin/luke?numTerms=0
In future releases (ie: already in trunk and branch 3x) there is also the
SolrInfoMBeanRequestHandler which will replace registry.jsp and stats.jsp
https://issues.apache.org/jira/browse/SOLR-1750
-Hoss
