![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 5923 阅读 · 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 · 295 阅读 · 0 评论 -
lucene 基于索引的查询
lucene 基于索引的查询根据title模糊查询: public String searchInfo(HttpServletRequest request) throws CorruptIndexException, IOException { String indexpackUrl = InfoService.class.getResource("/").ge原创 2016-12-05 15:49:01 · 238 阅读 · 0 评论