Rune Hansen wrote:
Hi,
I don't know if this has anything to do with your problem but you can turn off locking entirely by:
'''
import os
os.environ['GCJ_PROPERTIES'] ="disableLuceneLocks=true"
I'm not sure if that's a good idea...it seems to be intended for use on read-only media.
And for what it's worth, it doesn't cure the problem once it has happened (which is what I would have expected, of course).
So I'm trying to figure how to force an unlock from PyLucene.... but I'm still up against the problem of it throwing a VC++ error, rather than a Python exception. I'm hoping that if I do a pre-emptive unlock, that'll avoid the problem... but I suppose that'll create the opportunity for indexing processes to collide. I'm not sure if Lucene support multiple indexers into the same index at the same time...? Or more generally, what's the reason for the lock?
And I've found the answer, apparently... create an IndexReader instance for the index, then do an unlock(), as someone here suggested.
Nick
_______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
