Hi,
Quote:
there is a clearLock method, but it expects a lock name that i don't know.
Look into the IndexWriter (Lucene code), you'll see that it uses a constant. Always the same name :-)
What about contributing a patch to optionally "force unlock" the index at startup?
The DirectoryProvider could do that nicely, when some property is set.
Since 3.2-beta1 you'll be able to set any LockFactory:
http://opensource.atlassian.com/project ... SEARCH-284Meaning you can actually disable the locking, IFF you're sure no other application is going to use the same directory.