I'm aware of the CoreAdminRequest API, however given the fact that our solr cluster machines have their own internal configurations I'd prefer to use the http approach rather then having to specify the instanceDir or the solrServer. One issue I was thinking of was the double quotes needed around the curl command and how to simulate that through the restclient or even the java code, its weird that this is needed. Anyways thanks for the inputs.
> Date: Tue, 4 Jun 2013 09:52:03 -0700 > From: bbar...@gmail.com > To: solr-user@lucene.apache.org > Subject: Re: Creating a new core programmicatically in solr > > I would use the below method to create new core on the fly... > > CoreAdminResponse e = CoreAdminRequest.createCore("name", "instanceDir", > server); > > http://lucene.apache.org/solr/4_3_0/solr-solrj/org/apache/solr/client/solrj/response/CoreAdminResponse.html > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Creating-a-new-core-programmicatically-in-solr-tp4068132p4068134.html > Sent from the Solr - User mailing list archive at Nabble.com.