![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Lucene
浮华2017
这个作者很懒,什么都没留下…
展开
-
基于lucene7.5创建索引的demo
索引目录下的所有文本文件。此案例是来自 http://lucene.apache.org/core/7_5_0/demo/index.htmlpackage com.sunfeng.lucene.meetlucene;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;...原创 2019-06-06 10:52:35 · 210 阅读 · 0 评论 -
lucene搜索demo
package com.sunfeng.lucene.meetlucene;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.standard.StandardAnalyzer;import org.apache.lucene.index.DirectoryReader;import...原创 2019-06-06 11:01:32 · 146 阅读 · 1 评论 -
lucene7.5 lucene查询之多条件查询BooleanQuery类使用
Analyzer analyzer = new MMSegAnalyzer(); BooleanQuery.Builder builderAll = new BooleanQuery.Builder(); BooleanQuery.Builder builder = new BooleanQuery.Builder(); Query company...原创 2019-06-06 11:20:19 · 2217 阅读 · 1 评论 -
基于Lucene7.5的全文检索(一)
lucene的基础知识这里就不做过多的赘述1、重置索引(创建索引)![在这里插入图片描述](https://img-blog.csdnimg.cn/2019060509512057.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xvd...原创 2019-06-05 09:52:22 · 375 阅读 · 0 评论