RE: live update of index used by Tomcat

2005-10-04 Thread Vanlerberghe, Luc
-user@lucene.apache.org Cc: Vanlerberghe, Luc Subject: RE: live update of index used by Tomcat > I can post the code and testcases if you're interested. Luc, that would be great as I have the very same problem. Regards, Carsten - T

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. [.

RE: live update of index used by Tomcat

2005-09-20 Thread Vanlerberghe, Luc
D] Sent: maandag 19 september 2005 20:49 To: java-user@lucene.apache.org Subject: live update of index used by Tomcat Hi, I need to merge two indexes into one which is accessed by a Searcher in Tomcat. Tomcat keeps the searcher (or reader) open for good performance. However, on Windows you

live update of index used by Tomcat

2005-09-19 Thread Daniel Naber
Hi, I need to merge two indexes into one which is accessed by a Searcher in Tomcat. Tomcat keeps the searcher (or reader) open for good performance. However, on Windows you cannot delete a file when it's opened for reading, so I cannot do the merge while Tomcat is running and the reader is open