Re: solr 3.5 core rename issue

2013-04-18 Thread Jie Sun
yeah I realize using ${solr.core.name} for dataDir must be the cause for the issue we see... it is fair to say the SWAP and RENAME just create an alias that still points to the old datadir. if they can not fix it then it is not a bug :-) at least we understand exactly what is going on there. than

Re: solr 3.5 core rename issue

2013-04-17 Thread Shawn Heisey
On 4/17/2013 7:07 PM, Jie Sun wrote: > thanks Shawn for filing the issue. > > by the way my solrconfig.xml has: > > ${MYSOLRROOT:/mysolrroot}/messages/solr/data/${solr.core.name} > > For now I will have to shutdown solr and write a script to modify the > solr.xml manually and rename the core da

Re: solr 3.5 core rename issue

2013-04-17 Thread Jie Sun
thanks Shawn for filing the issue. by the way my solrconfig.xml has: ${MYSOLRROOT:/mysolrroot}/messages/solr/data/${solr.core.name} For now I will have to shutdown solr and write a script to modify the solr.xml manually and rename the core data directory to new one. by the way when I try to re

Re: solr 3.5 core rename issue

2013-04-17 Thread Shawn Heisey
On 4/16/2013 2:39 PM, Jie Sun wrote: ... the command I ran was to rename from '413' to '413a'. when i debug through solr CoreAdminHandler, I notice the persistent flag only controls if the new data will be persisted to solr.xml or not, thus as you can see, it did ch

Re: solr 3.5 core rename issue

2013-04-16 Thread Shawn Heisey
On 4/16/2013 4:48 PM, Shawn Heisey wrote: Here's an excerpt from my solr.xml: Sorry about the incomplete edit there. My solr.xml from 4.x uses relative paths, but my 3.5 setup still has absolute paths. I was trying to make the 3.5 excerpt have relative paths before I sent it, b

Re: solr 3.5 core rename issue

2013-04-16 Thread Shawn Heisey
On 4/16/2013 2:39 PM, Jie Sun wrote: Hi Shawn, I do have persistent="true" in my solr.xml: ... the command I ran was to rename from '413' to '413a'. I think I see the problem. You have three cores that all point to the same instanceDir, and no dataDir parameter.

Re: solr 3.5 core rename issue

2013-04-16 Thread Jie Sun
Hi Shawn, I do have persistent="true" in my solr.xml: ... the command I ran was to rename from '413' to '413a'. when i debug through solr CoreAdminHandler, I notice the persistent flag only controls if the new data will be persisted to solr.xml or not, thus as you can se

Re: solr 3.5 core rename issue

2013-04-16 Thread Shawn Heisey
On 4/16/2013 2:02 PM, Jie Sun wrote: We just tried to use .../solr/admin/cores?action=RENAME&core=core0&other=core5 to rename a core 'old' to 'new'. After the request is done, the solr.xml has new core name, and the solr admin shows the new core name in the list. But the index dir still has the