日期:2014-05-18  浏览次数:20691 次

请教lucene全文检索,4.4.0版本的操作
下了最新的lucene,看的教程是3.0的,索引的创建等等内容都变动很多,很多都不知道怎么写,看doc也没有找到,一个是file to document的函数怎么写,还有IndexWriter的第二个参数IndexWriterConfig怎么写,谢谢了

------解决方案--------------------
Directory dir = FSDirectory.open(new File(indexDir));
IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_43,new StandardAnalyzer(Version.LUCENE_43));
//创建Lucene indexWriter
IndexWriter writer = new IndexWriter(dir, conf);//与lucene之前的版本有区别
------解决方案--------------------
http://www.liutime.com/javainfo/706/

http://www.liutime.com

希望能帮到你
------解决方案--------------------
http://blog.csdn.net/chenghui0317/article/category/1570275http://blog.csdn.net/chenghui0317/article/category/1570275

不懂问我。。