On Tue, 27 Dec 2005, tsuraan wrote:

I'm having some problems with PyLucene and the lockfiles that it's
putting in /tmp.  Basically, they don't get deleted sometimes.  I have
an app that is indexing thousands (up to millions) of emails while
users are using the front-end to do searches on those emails.  This
seems to work well enough, since Java Lucene supports simultaneous
document additions and searches, but sometimes the addition of a
document (I don't think it's the running of a search) leaves behind a
permanent write.lock or, very rarely, a commit.lock.

I've read about similar things on the Java Lucene lists. Some trawling there could be useful.

Thanks for any help you can provide.

A way to investigate this would be to move to python for the index storage code. Use the code in test_PythonDirectory.py to get you started on implementing a python implementation of a Lucene Directory suitable for your needs. That way, you bypass Java and get more control over the management of files and locks.


Using PyLucene 1.9-rc1 compiled with gcc-4.1-20051029 on FreeBSD 5.4.


You should use the most recent PyLucene 1.9 code at
http://downloads.osafoundation.org/PyLucene/src/PyLucene-src-1.9rc1-3.tar.gz,
I've made some fixes since the 1.9 announcement.

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

Reply via email to