On 04/12/2010 02:16 PM, Ahmet Arslan wrote:

--- On Mon, 4/12/10, Ahmet Arslan<iori...@yahoo.com>  wrote:

From: Ahmet Arslan<iori...@yahoo.com>
Subject: Re: AW: refreshing synonyms.txt - or other configs
To: solr-user@lucene.apache.org
Date: Monday, April 12, 2010, 5:08 PM

yes i am using solr.xml, although
there is only one core defined
at the moment. so reloading is only possible with a
core-setup, right?
Yes.
In Solr 1.5 trunk [1] \solr-trunk\solr\example\solr directory already contains 
solr.xml for default/standard set-up which allows RELOAD command.

http://localhost:8983/solr/admin/cores?action=RELOAD&core=collection1

You can still use this url http://localhost:8983/solr/select/?q=solr to query. 
Or admin screen: http://localhost:8983/solr/admin/

[1] http://svn.apache.org/repos/asf/lucene/dev/trunk




Technically, even in Solr 1.4 you can reload a single core setup - but I don't think you can do it from the core admin request handler - the only way to refer to the core is "", and I'm not sure that can be specified in the HTTP request.

You could make your own little plugin RequestHandler that did the reload though. The RQ could get the CoreContainer from the SolrCore retrieved from the request, and then call reload on the "" core.

--
- Mark

http://www.lucidimagination.com



Reply via email to