Re: "Best-practice" in a web application AND live update of index used by Tomcat

2005-09-21 Thread Matthias Bräuer
Hello, Are you sure that both processes use the same directory to store the Lock files? Well, the variable FSDirectory.LOCK_DIR shows for both applications the same value (the temp directory in my home directory C:\Documents and Settings\Matthew\...). If both processes are on the same ma

RE: "Best-practice" in a web application AND live update of index used by Tomcat

2005-09-21 Thread Vanlerberghe, Luc
e list of files that cannot be deleted immediately is stored in the file "deletable". Luc -Original Message- From: Matthias Bräuer [mailto:[EMAIL PROTECTED] Sent: dinsdag 20 september 2005 21:24 To: java-user@lucene.apache.org Subject: Re: "Best-practice" in a web a

Re: "Best-practice" in a web application AND live update of index used by Tomcat

2005-09-20 Thread Ramanathan Krishnan
Hi, I am a newbie to lucene but I guess the IOException will occur only in windows as window os doesn't close the files properly. It shud work fine in Linux. I had a similar problem when recreating the same index. The approach I took was to delete all documents and start adding new ones, inste

Re: "Best-practice" in a web application AND live update of index used by Tomcat

2005-09-20 Thread Matthias Bräuer
Hello, I have a question regarding your answers to two previous posts: >For best performance, use a single IndexSearcher instance across your entire application. >DelayCloseIndexSearcher overrides the close() method so it does not >close immediately: it only decrements the usage counter. [.