
lucene
山药当归枸杞GO
做最好的自己
展开
-
lucene多种查询方式
Lucene搜索方式大合集 1、IndexCreationTest类:Lucene搜索测试类 package junit; import java.io.File; import java.io.IOException; import java.text.ParseException; import java.util.ArrayList; import java.util.Li转载 2016-12-05 10:02:24 · 5974 阅读 · 2 评论 -
lucene创建索引
具体代码如下: //生成页面生成索引 public void generStaticPage(String id, HttpServletRequest request) throws IOException { Info info = infoDao.findOne(id); VelocityEngine engine = templateSer原创 2016-12-05 10:18:52 · 324 阅读 · 0 评论 -
lucene 基于索引的查询
lucene 基于索引的查询 根据title模糊查询: public String searchInfo(HttpServletRequest request) throws CorruptIndexException, IOException { String indexpackUrl = InfoService.class.getResource("/").ge原创 2016-12-05 15:49:01 · 268 阅读 · 0 评论