![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lucene
王小工
java研发工程师、架构师、云计算、大数据
展开
-
lucene 应用
lucene 应用 lucenedto 类 用于区分 增加索引: 储存文件 File indexFile = new File(indexDirPath + "/" + entity.getUrlType()); indexFile.mkdirs(); if (!indexFile.exists()) { try { indexFile.cr...2011-11-07 13:13:23 · 66 阅读 · 0 评论 -
lucene 分页
/** * 获取指定范围内的文档(该方法只打印文档内容,代表取得相应的文档)。 * @param start 注意:从0开始计数 * @param howMany*/public void getResults(int start , int howMany) {try { QueryParser parser = new QueryPars...原创 2011-11-07 13:16:16 · 61 阅读 · 0 评论