67,549
社区成员




Directory directory=null;
//本地索引存储路径
// String pathss = System.getProperty("user.dir");
// String indexP=pathss.substring(0, pathss.length()-3)+UserinfoUtil.indexLocalPath;
//线上索引存储路径
String indexP=UserinfoUtil.indexBlogPath;
log.info("磁盘索引存放路径:"+indexP);
//创建磁盘存储位置
Path path=Paths.get(indexP);
try {
directory=FSDirectory.open(path);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return directory;