I need to simulate this curl command line with java code: curl "http://10.42.6.74:8983/solr/admin/cores?action=CREATE&name=NEW_SCHEMA.solr"
Obviously doing a simple HttpGet with the appropriate query parameters is not the answer. I dont believe your example is not going to work because I am passing in a string already into the constructor for the HttpGet class (namely getSolrClient().getBaseUrl()+ADMIN_CORE_CONSTRUCT+"?action="+action+"&name="+name), adding quotes around it will confuse the compiler. Let me know if I missed something here. > Date: Tue, 4 Jun 2013 10:03:50 -0700 > From: bbar...@gmail.com > To: solr-user@lucene.apache.org > Subject: RE: Creating a new core programmicatically in solr > > did you try escaping double quotes when you are making the http request. > > HttpGet req = new > HttpGet(\"+getSolrClient().getBaseUrl()+ADMIN_CORE_CONSTRUCT+"?action="+action+"&name="+name+\"); > > > HttpResponse response = client.execute(request); > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Creating-a-new-core-programmicatically-in-solr-tp4068132p4068139.html > Sent from the Solr - User mailing list archive at Nabble.com.