lucene:no segments* file found in org.apache.lucene.store.FSDirectory@
来源:互联网 发布:淘宝优惠券设置 编辑:程序博客网 时间:2024/04/30 13:18
lucene创建索引中的构造函数IndexWriter(String path, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl) ,这里的boolean create参数的意思并非是否创建索引,而是覆盖还是追加的意思。原文见官方文档:create - true to create the index or overwrite the existing one; false to append to the existing index
所以。当该参数为false,而所以目录下由不存在索引的时候,便会产生该异常。
create - true to create the index or overwrite the existing one; false to append to the existing index
true:创建新的索引或者覆盖现有索引
false:追加索引到现有索引。
所以。当该参数为false,而所以目录下由不存在索引的时候,便会产生该异常。
java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@D:/lucenedir/index: files:
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:604)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1072)
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:550)
- lucene:no segments* file found in org.apache.lucene.store.FSDirectory@
- lucene 错误 no segments* file found in org.apache.lucene.store.FSDirectory@ write.lock
- lucene:no segments* file found in org.apache.lucene.store.FSDirectory@
- lucene:no segments* file found in org.apache.lucene.store.FSDirectory@
- no segments* file found in org.apache.lucene.store.SimpleFSDirectory
- lucene 索引出错 no segments* file found in org.apache.lucene.store.MMapDirectory
- Lucene错误:no segments* file found in org.apache.lucene.store.RAMDirectory
- luence基础学习——no segments* file found in org.apache.lu异常处理
- Lucene 使用no segments* file 异常原因
- Lucene异常:org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
- lucene RAMDirectory org.apache.lucene.index.IndexNotFoundException
- 求解决 严重: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
- #Lucene# org.apache.lucene.util.BitUtil.pop(long x) 笔记
- lucene.apache.org部分译文(getting started)
- 语言分析包org.apache.lucene.analysis
- lucene2.4.1(http://lucene.apache.org/)
- 语言分析包org.apache.lucene.analysis
- ClassNotFoundException: org.apache.lucene.analysis.tokenattributes.CharTermAttribute
- 英语单词的背诵方法
- JAVA工程结构 && CMD使用javac提示非有效命令怎么办
- 函数间数据拷贝 stack overflow
- php 中的单 双引号
- 值得纪念的一天
- lucene:no segments* file found in org.apache.lucene.store.FSDirectory@
- 使用Spring的注解方式注入Struts所管理的action
- 机油的型号
- 愚人节就要到了,我喜欢这个网站~
- cin、cin.get()、cin.getline()、getline()、gets()等函数的用法
- 无题
- 文理分科与文理合流
- Re-enable M-Lint
- hadoop分布式系统 3