Re: get a total count

2012-05-03 Thread Shawn Heisey
On 5/1/2012 8:57 AM, Rahul R wrote: 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

Re: get a total count

2012-05-01 Thread Rahul R
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

Re: get a total count

2011-11-15 Thread Otis Gospodnetic
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 repor

Re: get a total count

2011-11-15 Thread Erick Erickson
Not sure I understand the question. You have to specifically address the docs to a particular shard when indexing, so you should know already. Solr automagically distributes *queries* across shards (if you've configured your installation for it), but not docs during indexing. If that makes no sens