![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lucene
blackproof
这个作者很懒,什么都没留下…
展开
-
lucene入门实例三 (index索引)
copy《lucene in action》的一个索引的例子: package com.s.lucene.LIA.index;import java.io.IOException;import junit.framework.TestCase;import org.apache.lucene.analysis.WhitespaceAnalyzer;impo...原创 2012-09-27 15:51:21 · 81 阅读 · 0 评论 -
lucene入门实例一(写索引)
analysis.standard.StandardAnalyzer;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.document.FieldSelectorResult;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.store.原创 2012-09-25 16:57:21 · 107 阅读 · 0 评论 -
lucene入门实例二(检索)
e.lucene.document.Document;import org.apache.lucene.queryParser.ParseException;import org.apache.lucene.queryParser.QueryParser;import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.Query;import org.apache.lucene.search.Sc原创 2012-09-25 17:30:09 · 113 阅读 · 0 评论 -
lucene入门实例三 (index索引)
hitespaceAnalyzer;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.index.IndexReader;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.Term;import org.apache.luc原创 2012-09-27 15:51:21 · 84 阅读 · 0 评论