lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Hinegardner <jer...@hinegardner.org>
Subject Re: Solr: How to create a core from the command line ?
Date Tue, 27 Oct 2009 19:01:22 GMT
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                              jeremy@hinegardner.org 


Mime
View raw message