Re: Restarting tomcat deletes all Solr indexes

2009-05-12 Thread Shalin Shekhar Mangar
You can fix the path of the index in your solrconfig.xml On Tue, May 12, 2009 at 4:48 PM, KK wrote: > One more information I would like to add. > The entry in solr stats page says this: > > readerDir : org.apache.lucene.store.FSDirectory@/home/kk/solr/data/index > > when I ran from /home/kk > a

Re: Restarting tomcat deletes all Solr indexes

2009-05-12 Thread KK
One more information I would like to add. The entry in solr stats page says this: readerDir : org.apache.lucene.store.FSDirectory@/home/kk/solr/data/index when I ran from /home/kk and this: readerDir : org.apache.lucene.store.FSDirectory@ /home/kk/junk/solr/data/index after running from /home/

Re: Restarting tomcat deletes all Solr indexes

2009-05-12 Thread KK
Thanks for your response @aklochkov. But I again noticed that something is wrong in my solr/tomcat config[I spent a lot of time making solr run], b'coz in the solr admin page [ http://localhost:8080/solr/admin/] what I see is that the $CWD is the location where from I restarted tomcat and seems th

Re: Restarting tomcat deletes all Solr indexes

2009-05-12 Thread Andrey Klochkov
Hi, I know that when starting Solr checks index directory existence, and creates new fresh index if it doesn't exist. Does it help? If no, the next step I'd do in your case is patching SolrCore.initIndex method - insert some logging, or run EmbeddedSolrServer with debugger etc. On Mon, May 11, 20

Restarting tomcat deletes all Solr indexes

2009-05-11 Thread KK
Hi, I'm facing a silly problem. Every time I restart tomcat all the indexes are lost. I used all the default configurations. I'm pretty sure there must be some basic changes to fix this. I'd highly appreciate if someone could direct me fixing this. Thanks, KK.