Re: Lucene faster on JDK 1.5?

2005-07-17 Thread Otis Gospodnetic
I don't recall the details, but NIO has been mentioned before, and you may find something in Bugzilla and in mailing list archives. From what I recall, there was a NIO-based lock contribution that was never integrated, and I think Doug made some experiments/tests with NIO-based Directory implement

Re: Index locked exception while updating index

2005-07-17 Thread Harini Raghavan
Hi Otis, I tried to print the stack but there was no exception. I think I found the cause for the exception. The addDocument was being called by different threads simultaneously and so when a second thread was trying to access the index, it was already locked. So I made the method addDocument

Re: Index locked exception while updating index

2005-07-17 Thread Otis Gospodnetic
Harini, You are catching IOException in the finally block, but you are not even printing out the exception stack trace. Perhaps you are not able to close your IndexWriter for some reason. Otis --- Harini Raghavan <[EMAIL PROTECTED]> wrote: > Hi All, > I am quite new to Lucene and I have probl

Index locked exception while updating index

2005-07-17 Thread Harini Raghavan
Hi All, I am quite new to Lucene and I have problem with locking. I have a MessageDrivenBean that sends messages to my Lucene indexer whenever there is a new database update. The indexer updates the index incrementally . Below is the code fragment in the indexer method that gets invoked by the