Re: Solr Collection's Size

2013-04-10 Thread Per Steffensen
On 4/10/13 12:17 PM, Per Steffensen wrote: "number of documents found" can be found in a field called "numFound" in the response. If you do use SolrJ you will likely have a QueryResponse qr and can just do a qr.setNumFound(). qr.getResults().getNumFound() :-) If you use do not use SolrJ try

Re: Solr Collection's Size

2013-04-10 Thread Per Steffensen
"number of documents found" can be found in a field called "numFound" in the response. If you do use SolrJ you will likely have a QueryResponse qr and can just do a qr.setNumFound(). If you use do not use SolrJ try to add e.g. wt=json to your search query to get the response in JSON. Find th

Re: Solr Collection's Size

2013-04-05 Thread Alexandre Rafalovitch
I'd add rows=0, just to avoid the actual records serialization if size is all that matters. Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Latel

Re: Solr Collection's Size

2013-04-05 Thread Jack Krupansky
Query for "*:*" and look at the number of documents found. -- Jack Krupansky -Original Message- From: Ranjith Venkatesan Sent: Friday, April 05, 2013 2:06 AM To: solr-user@lucene.apache.org Subject: Solr Collection's Size Hi, I am new to solr. I want to find size of collection dynami