Do you mean solr.core.name has the wrong value after the swap? You swapped doc-temp so now it's doc and solr.core.name is still doc-temp? This completely contradicts my experience, what version of solr are you using? Why use postCommit? You're running the risk of performing a swap when you don't mean to. Are you using DIH? If so, I'd go with querying the status of the import until it's done and then performing the swap.
Hi Ephraim, No, the solr.core.name is not doc-temp. It is doc after the first swap. I'm expecting it to be doc-temp but after the swap the data dir is getting changed so it is giving me doc ( I always do full import on doc-temp, so i expect the solr.core.name as doc-temp ). Which is not the case i'm looking for. I'm using Solr 1.4.1. Right now I temporarily came up with writing a class to handle the risk of performing a swap when i don't mean to. But eventually I'm looking for getting the core name after every full import( if I do import on doc-temp I should be able to retrieve the doc-temp core name programatically ). Yes I use DIH for some cores. If I check the status and it is not complete, I should wait for the next query time to make sure it is done. So, I don't want to wait for that time. I want to swap immediately after it is done. Thanks again and please let me know if any of my approaches sound wrong. Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/Corename-after-Swap-in-MultiCore-tp1835325p1889634.html Sent from the Solr - User mailing list archive at Nabble.com.