lucene的第一个程序

时间:2021-03-27 17:32:23
【文件属性】:
文件名称:lucene的第一个程序
文件大小:4.51MB
文件格式:ZIP
更新时间:2021-03-27 17:32:23
lucene // 1.创建一个indexwriter // 1)指定索引库的存放位置Directory对象 // 2)指定一个分析器,对文档内容进行分析 Directory directory = FSDirectory.open(new File("D:\\temp\\index")); Analyzer analyzer = new StandardAnalyzer();// 官方推荐 IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer); IndexWriter indexWriter = new IndexWriter(directory, config);
【文件预览】:
Lucene-01
----bin()
--------com()
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----src()
--------com()
----.project(385B)
----.classpath(698B)
----lib()
--------junit-4.12.jar(308KB)
--------hamcrest-core-1.3.jar(44KB)
--------lucene-core-4.10.3.jar(2.44MB)
--------lucene-analyzers-common-4.10.3.jar(1.62MB)
--------commons-io-2.4.jar(181KB)
--------lucene-queryparser-4.10.3.jar(382KB)

网友评论