Re: Indexing leave behind write.lock file.

2012-01-31 Thread Koorosh Vakhshoori
Here is how I got SolrJ to delete the write.lock file. I switched to the CoreContainer's remove() method. So the new code is: ... SolrCore curCore = container.remove(core1); curCore.close(); Now my understanding for why it is working. Based on Solr source code, the issue had to do with the

Indexing leave behind write.lock file.

2012-01-30 Thread Koorosh Vakhshoori
Hi, I am using SolrJ to reindex a core in a multiCore setup. The general flow of my program is as follows (pseudo code): String solrHome = /opt/solr/home; File solrXml = new File( solrHome, solr.xml ); container = new CoreContainer(); container.load(solrHome, solrXml); SolrServer solr = new