org.apache.lucene.store.LockObtainFailedException

Lucence
org.apache.lucene.store.LockObtainFailedException
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@F:\...\write.lock
   at org.apache.lucene.store.Lock.obtain(Lock.java:85)
   at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1054)
   at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:670)
解决方案:
删除存储文件,重新建一个。
(服务器启动时)有可能同时建两次,还没来得及建成就报错,让它建一次就行了。

你可能感兴趣的:(java,apache,F#,Lucene)