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: "Best-practice" in a web application

2005-09-20 Thread Erik Hatcher
On Sep 20, 2005, at 2:24 AM, Magne Skjeret wrote: I am using lucene to index all my data, and it is working just great. I will now add search to a web application, so the index can actually be used, not just sit there. Good idea... it'd be a shame for the index to sit unsearched! :) 1. C

"Best-practice" in a web application

2005-09-19 Thread Magne Skjeret
Hi I am using lucene to index all my data, and it is working just great. I will now add search to a web application, so the index can actually be used, not just sit there. I know how to to this, but I have been going around thinking on what is the best practice. Speed is essential for me. 1. Ca