Hello, A related question on this topic. How do I programmatically find the total number of documents across many shards ? For EmbeddedSolrServer, I use the following command to get the total count : solrSearcher.getStatistics().get("numDocs")
With distributed search, how do i get the count of all records in all shards. Apart from doing a *:* query, is there a way to get the total count ? I am not able to use the same command above because, I am not able to get a handle to the SolrIndexSearcher object with distributed search. The conf and data directories of my index reside directly under a folder called solr (no core) under the weblogic domain directly. I dont have a SolrCore object. With EmbeddedSolrServer, I used to get the SolrIndexSearcher object using the following call : solrSearcher = (SolrIndexSearcher)SolrCoreObject.getSearcher().get(); Stack Information : OS : Solaris jdk : 1.5.0_14 32 bit Solr : 1.3 App Server : Weblogic 10MP1 Thank you. - Rahul On Tue, Nov 15, 2011 at 10:49 PM, Otis Gospodnetic < otis_gospodne...@yahoo.com> wrote: > I'm assuming the question was about how MANY documents have been indexed > across all shards. > > Answer #1: > Look at the Solr Admin Stats page on each of your Solr instances and add > up the numDocs numbers you see there > > Answer #2: > Use Sematext's free Performance Monitoring tool for Solr > On Index report choose "all, sum" in the Solr Host selector and that will > show you the total # of docs across the cluster, total # of deleted docs, > total segments, total size on disk, etc. > URL: http://www.sematext.com/spm/solr-performance-monitoring/index.html > > Otis > ---- > > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > Lucene ecosystem search :: http://search-lucene.com/ > > > >________________________________ > >From: U Anonym <uano...@gmail.com> > >To: solr-user@lucene.apache.org > >Sent: Monday, November 14, 2011 11:50 AM > >Subject: get a total count > > > >Hello everyone, > > > >A newbie question: how do I find out how documents have been indexed > >across all shards? > > > >Thanks much! > > > > > > >