Skip to content

Commit 8f56349

Browse files
committed
lucene
1 parent 20e7c1e commit 8f56349

10 files changed

Lines changed: 342 additions & 508 deletions

File tree

0 Bytes
Binary file not shown.
-38 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-38 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-197 Bytes
Binary file not shown.

‎spring-boot-lucene-demo/pom.xml‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<scope>test</scope>
3838
</dependency>
3939

40+
4041
<!-- 添加lucene支持 -->
4142
<!--核心包-->
4243
<dependency>
@@ -66,13 +67,33 @@
6667
<version>7.1.0</version>
6768
</dependency>
6869

69-
<!-- 中文分词器 SmartChineseAnalyzer -->
70+
<!-- smartcn 中文分词器 SmartChineseAnalyzer smartcn分词器 需要lucene依赖 且和lucene版本同步-->
7071
<dependency>
7172
<groupId>org.apache.lucene</groupId>
7273
<artifactId>lucene-analyzers-smartcn</artifactId>
7374
<version>7.1.0</version>
7475
</dependency>
7576

77+
<!-- ik-analyzer 中文分词器-->
78+
<dependency>
79+
<groupId>cn.bestwu</groupId>
80+
<artifactId>ik-analyzers</artifactId>
81+
<version>5.1.0</version>
82+
</dependency>
83+
84+
<!-- MMSeg4j 分词器 -->
85+
<dependency>
86+
<groupId>com.chenlb.mmseg4j</groupId>
87+
<artifactId>mmseg4j-solr</artifactId>
88+
<version>2.4.0</version>
89+
<exclusions>
90+
<exclusion>
91+
<groupId>org.apache.solr</groupId>
92+
<artifactId>solr-core</artifactId>
93+
</exclusion>
94+
</exclusions>
95+
</dependency>
96+
7697

7798
</dependencies>
7899

0 commit comments

Comments
 (0)