org.apache.lucene.index.IndexNotFoundException: no segments* file found 异常表明在尝试访问 Lucene 索引时,未能找到必要的 segments 文件。segments 文件是 Lucene 索引的关键组成部分,它存储了索引中所有段(segment)的元数据,包括段内包含的文档数量、字段信息等。如果找不到这些文件,Lucene 将无法加载索引,从而抛...
JIRA-Bootstrap ERROR [c.a.jira.index.LuceneCorruptionChecker] Can't open index 'C:\Atlassian\Application Data\Jira\caches\indexesV2\plugins\JEEntity'. Reason: org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@C:\A...
是删除并添加文档后没有执行IndexWriter.Commit()引起的
Java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@/home/<path>: files: at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:516) at org.apache.lucene.index.IndexReader.open(IndexReader.java:185) at org.apache.lucene.index.In...
at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2423) Exception in thread "main" org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@/var//solr-6.6.0/shard2/solr/cese/data/index.20171103115319432 lockFactory=org.apache.lucene.store.NativeFSLockFactory...
(FilterToBeanProxy.java:98) root cause java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@D:\Tomcat 6.0\webapps\java1995\ROOT\compass\index\index\resource: files: _0.cfs _1.cfs org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos....
lucene:no segments* file found in org.apache.lucene.store.FSDirectory@异常 博客分类: 虾米-Luence检索 目的:我想把内存中的索引合并到磁盘文件中。 异常:org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.RAMDirectory@1e94b0ca lockFactory=org.apache...
为了将更改写入索引,您必须关闭索引编写器,然后打开IndexReader。
其中"true"为在indexPath 目录下不新建索引而使用原来的索引,在第一次建立索引时会遇到"no segments* file found in org.apache.lucene.store.FSDirectory" 的异常。因为还没有在该目录建立任何索引文件。 解决方案: 目前想到这个解决方案,还没想到更好的: File file = new File(indexPath); //如果目录下没有...