Elastic Search
Spring boot集成Elastic-search并添加中文分词器
1. 在pom中添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
2. 新建Elastic Search索引配置文件
es_setting.json
{
"index": {
"analysis": {
"analyzer": {
"ik_pinyin_analyzer": {
"type":……

- 共1篇
- 1