On Tue, Oct 27, 2009 at 10:03:23AM -0700, SGE0 wrote:
> 
> Hi,
> 
> currently on dev. I use following command (in a browser) to create a new
> core (we use Solr in a multi-core mode):
> 
> http:\\localhost:8080\solr-rel-1-00-7064\admin\cores?action=CREATE&name=test&instanceDir=c:\data\solr\cores\test&config=c:\data\solr\cores\test\conf\solrconfig.xml&schema=c:\data\solr\cores\test\conf\schema.xml&dataDir=c:\data\solr\cores_data\test
> 
> We are about to move to prod. environment and my question is how I can
> create a new core from the command line (on prod we can only use the shell)
> ? 
> 
> Any ideas ?

You can still use the browser from some other machine hitting:

    http://production.example.com:8080/solr/admin/cores?rest-of-request

More appropriate would be to use a commandline utility like 'curl' to 
create the new cores.

    curl 'http://production.example.com:8080/solr/admin/cores?rest-of-request'

enjoy,

-jeremy

-- 
========================================================================
 Jeremy Hinegardner                              jer...@hinegardner.org 

Reply via email to