lucene实现本地文本搜索引擎

这个blog用来记录一下我用的lucene做的searchEngine,实现了文本的创建索引、自评分排序和查找。和大家共勉。

文本数据:
链接:https://pan.baidu.com/s/1vmAyg1iw8D32MqgkYRBbJg
提取码:4znr

源代码:
https://gitee.com/S_Braylon/lucene_searchEngine
一.准备工作
1.环境
Windows10 + Idea
2.Maven依赖

1.<dependencies>  
2.        <dependency>  
3.            <groupId>org.apache.lucene</groupId>  
4.            <artifactId>lucene-core</artifactId>  
5.            <version>4.6.1</version>  
6.        </dependency>  
7.        <dependency>  
8.            <groupId>org.apache.lucene</groupId>  
9.            <artifactId>lucene-queryparser</artifactId>  
10.            <version>4.6.1</version>  
11.        </dependency>  
12.        <dependency>  
13.            <groupId>org.apache.lucene</groupId>  
14.            <artifactId>lucene-analyzers-common</artifactId>  
15.            <version>4.6.1</version>  
16.        </dependency>  
17.        <dependency>  
18.            <groupId>
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值