Lucene用zoie,不能覆盖索引文件

时间:2013-01-27 02:17:11

标签: lucene

我正在使用bobo浏览API。它支持zoie实时索引。 Zoie内部使用lucene。我正在尝试创建索引但遇到以下错误。任何帮助将不胜感激。

Zoie verison 3.0.0.
Lucene 2.9.2
OS : windows 7 64bit

26 Jan 2013 20:50:34,352 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@39bc2399 proj.zoie.impl.indexing.internal.LuceneIndexDataLoader - Problem copying segments: Cannot overwrite: C:\D-Drive\ProfilerNewJourney\releases\AbbottRegulatory\FacetIndexFinal\event\_2.fdt
java.io.IOException: Cannot overwrite: C:\D-Drive\releases\FacetIndex\_2.fdt
    at org.apache.lucene.store.FSDirectory.initOutput(FSDirectory.java:362)
    at org.apache.lucene.store.SimpleFSDirectory.createOutput(SimpleFSDirectory.java:58)
    at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:61)
    at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:334)
    at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:153)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045)
    at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630)
    at org.apache.lucene.index.IndexWriter.resolveExternalSegments(IndexWriter.java:3809)
    at org.apache.lucene.index.IndexWriter.addIndexesNoOptimize(IndexWriter.java:3718)
    at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:234)
    at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:212)
    at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:138)
    at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:177)
    at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:380)

1 个答案:

答案 0 :(得分:0)

问题已解决。文件处理程序由ZoieSystem打开。所以重新启动zoie系统解决了这个问题。有关此主题的更多信息,请访问groups.google.com/forum/?fromgroups=#!topic/zoie/QmYd5-QRXMk - Rocky