我是 Lucene 搜索 API 的新手。更新 Lucene 索引时,我不断收到以下异常...为什么会出现此错误以及如何避免它?
System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Indexes\write.lock
at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
at Lucene.Net.Index.IndexWriter.Init(String path, Analyzer a, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
谢谢阅读。