Skip to content

Commit 20e7c1e

Browse files
committed
lucene
1 parent 5db72dc commit 20e7c1e

12 files changed

Lines changed: 355 additions & 1 deletion

File tree

341 Bytes
Binary file not shown.
1.62 KB
Binary file not shown.
376 Bytes
Binary file not shown.
341 Bytes
Binary file not shown.
1.63 KB
Binary file not shown.
376 Bytes
Binary file not shown.
197 Bytes
Binary file not shown.

‎spring-boot-lucene-demo/indexDir/write.lock‎

Whitespace-only changes.

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

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>io.ymq.example</groupId>
7+
<artifactId>spring-boot-lucene-demo</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<name>spring-boot-lucene-demo</name>
12+
<description>Lucene Demo project for Spring Boot</description>
13+
14+
<parent>
15+
<groupId>org.springframework.boot</groupId>
16+
<artifactId>spring-boot-starter-parent</artifactId>
17+
<version>1.5.8.RELEASE</version>
18+
<relativePath/> <!-- lookup parent from repository -->
19+
</parent>
20+
21+
<properties>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24+
<java.version>1.8</java.version>
25+
26+
</properties>
27+
28+
<dependencies>
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter</artifactId>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-starter-test</artifactId>
37+
<scope>test</scope>
38+
</dependency>
39+
40+
<!-- 添加lucene支持 -->
41+
<!--核心包-->
42+
<dependency>
43+
<groupId>org.apache.lucene</groupId>
44+
<artifactId>lucene-core</artifactId>
45+
<version>7.1.0</version>
46+
</dependency>
47+
48+
<!--一般分词器,适用于英文分词-->
49+
<dependency>
50+
<groupId>org.apache.lucene</groupId>
51+
<artifactId>lucene-analyzers-common</artifactId>
52+
<version>7.1.0</version>
53+
</dependency>
54+
55+
<!--对分词索引查询解析-->
56+
<dependency>
57+
<groupId>org.apache.lucene</groupId>
58+
<artifactId>lucene-queryparser</artifactId>
59+
<version>7.1.0</version>
60+
</dependency>
61+
62+
<!-- 高亮 -->
63+
<dependency>
64+
<groupId>org.apache.lucene</groupId>
65+
<artifactId>lucene-highlighter</artifactId>
66+
<version>7.1.0</version>
67+
</dependency>
68+
69+
<!-- 中文分词器 SmartChineseAnalyzer -->
70+
<dependency>
71+
<groupId>org.apache.lucene</groupId>
72+
<artifactId>lucene-analyzers-smartcn</artifactId>
73+
<version>7.1.0</version>
74+
</dependency>
75+
76+
77+
</dependencies>
78+
79+
<build>
80+
<plugins>
81+
<plugin>
82+
<groupId>org.springframework.boot</groupId>
83+
<artifactId>spring-boot-maven-plugin</artifactId>
84+
</plugin>
85+
</plugins>
86+
</build>
87+
88+
89+
</project>

‎spring-boot-lucene-demo/src/main/resources/application.properties‎

Whitespace-only changes.

0 commit comments

Comments
 (0)