场景:Lucene创建索引后,进行搜索时,出现以下错误:
no segments* file found in org.apache.lucene.store.SimpleFSDirectory@D:\test
解决方式:在创建索引时,添加:writer.commit();
?
场景:Lucene创建索引后,进行搜索时,出现以下错误:
no segments* file found in org.apache.lucene.store.SimpleFSDirectory@D:\test
解决方式:在创建索引时,添加:writer.commit();
?