You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Yuval Dotan <yu...@gmail.com> on 2012/06/25 14:40:25 UTC

get number of cores

Hi
Is there a  *programmatic (java) *way to connect to the Solr server (using
solrj probably) and get the number of cores and core names?
Thanks
Yuval

Re: get number of cores

Posted by Erick Erickson <er...@gmail.com>.
With SolrJ, try using CoreAdminRequest.getStatus

Best
Erick

On Mon, Jun 25, 2012 at 9:26 AM, Yury Kats <yu...@yahoo.com> wrote:
> On 6/25/2012 8:40 AM, Yuval Dotan wrote:
>> Hi
>> Is there a  *programmatic (java) *way to connect to the Solr server (using
>> solrj probably) and get the number of cores and core names?
>
> A STATUS admin request will give you all available cores, with their names.
> http://wiki.apache.org/solr/CoreAdmin#STATUS

Re: get number of cores

Posted by Yury Kats <yu...@yahoo.com>.
On 6/25/2012 8:40 AM, Yuval Dotan wrote:
> Hi
> Is there a  *programmatic (java) *way to connect to the Solr server (using
> solrj probably) and get the number of cores and core names?

A STATUS admin request will give you all available cores, with their names.
http://wiki.apache.org/solr/CoreAdmin#STATUS