lucene工具类-升级索引
来源:互联网 发布:订单生产进度跟踪软件 编辑:程序博客网 时间:2024/06/04 18:45
package test;import java.io.File;import java.io.IOException;import org.apache.lucene.index.IndexUpgrader;import org.apache.lucene.store.FSDirectory;import org.apache.lucene.util.Version;public class ConvertFromThree { public static void main(String[] args) { ConvertFromThree c = new ConvertFromThree(); c.upgrade(); } private final String INDEX_PATH = "D:/newindex"; public void upgrade(){ try { File dir = new File(INDEX_PATH); String path = ""; String[] dirList = dir.list(); for (String d:dirList){ path = INDEX_PATH + "/" + d; System.out.println(path); IndexUpgrader t = new IndexUpgrader(FSDirectory.open(new File(path)), Version.LUCENE_47,System.out,true); t.upgrade(); System.out.println(path+" Done."); } } catch (IOException e) { e.printStackTrace(); } System.out.println("All Done."); }}
0 0
- lucene工具类-升级索引
- 操作lucene索引的工具类
- lucene 索引查看工具
- Luke:Lucene索引查看工具
- luke:lucene 索引查看工具
- Luke:Lucene索引查看工具
- lucene 核心索引类
- Lucene之索引查看工具Luke-yellowcong
- Lucene工具类
- Lucene 工具类
- Lucene索引操作常用类
- Lucene索引核心类研究
- Lucene索引&搜索核心类
- Lucene索引的帮助类
- Lucene 的核心索引类
- 一个辅助Lucene对数字类型进行索引和搜索的工具类
- lucene 索引
- Lucene 索引
- java中方法调用在内存中的体现
- Android系统性能调优工具介绍 .
- poj1326解题报告
- Erlang cowboy 处理简单的HTTP请求
- 使用ConditionalRemoval移除离群点
- lucene工具类-升级索引
- 猎头深度揭秘2014年互联网业薪水行情:互联网已经进入全面20W时代
- adb server is out of date. killing...
- 黑马程序员_Java中字符串解析
- coreldraw 复制填充渐变色
- linux中fork--子进程是从哪里开始运行
- AsyncTask的用法
- 三招帮你选择"合脚"ERP
- html中将不能完全显示的文字用...代替