Solr index distribution already does this with a slightly different mechanism. It moves the files instead of the directory. I recommend understanding and using the standard scripts for index distribution.
http://wiki.apache.org/solr/CollectionDistribution wunder On 9/29/08 9:55 PM, "Otis Gospodnetic" <[EMAIL PROTECTED]> wrote: > Hi, > > You could accomplish this by using symlinks or their equivalents if you are > not running Solr under UNIX. > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > ----- Original Message ---- >> From: mahendra mahendra <[EMAIL PROTECTED]> >> To: solr-user@lucene.apache.org >> Sent: Monday, September 29, 2008 3:46:04 PM >> Subject: Changing dataDir without restatrting server >> >> Is there any way to change the index location with out restarting the server? >> >> Requirement >> We want to share the index location by multiple search nodes. As part of my >> project maintanance we want to shift the current index location to other >> location and delete the current index location for every week. Is this >> possible >> to change the index location without restarting the server. The index >> location >> will be reading from some properties file.. >> >> Example >> We have two index locations called IndexA, IndexB. Presume currently my >> configuration is pointing to IndexA, after a week we are going to have fresh >> data in indexB and point the current index location to IndexB and remove the >> IndexA. The same thing will happen in reverse case for other week. >> >> Any help would be appreciate!! >> >> >> Thanks & Regards, >> Mahendra >