The Lucene locking code doesn't use the OS locking APIs offered by Java 1.5, yet. Until then, that code is a little brittle. If you need more reliability in this area, try using a database for your index such as the DbDirectory implementation built around Berkeley DB. PyLucene supports it.


Andi..

On Wed, 23 Feb 2005, Nick Arnett wrote:

Turns out that the problem I was having with crashes when trying to use indexes appears to have been simply that the index was locked. I seem to be able to replicate the problem by interrupting the indexing process. After interruption, indexing or searching crashes... but after using Luke to force the index to unlock, everything works fine again.

Now I'm off to see how I can catch this error and then force an unlock from PyLucene...

Nick

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to