Thanks, good catch, completely forgot about the & and its meaning in unix.
> From: j...@basetechnology.com > To: solr-user@lucene.apache.org > Subject: Re: Creating a new core programmicatically in solr > Date: Tue, 4 Jun 2013 13:22:34 -0400 > > The double quotes are required for curl simply because of the "&", which > tells the shell to run the preceding command in the background. The quotes > around the full URL escape the "&". > > -- Jack Krupansky > > -----Original Message----- > From: Saikat Kanjilal > Sent: Tuesday, June 04, 2013 12:56 PM > To: solr-user@lucene.apache.org > Subject: RE: Creating a new core programmicatically in solr > > 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. > >