SpringBoot集成es的使用;以一个文档结果页面搜索为例子
es的使用
1:首先需要创建索引。
public class Article {
private Long Id;
@Field(store = true)
private String title;
@Field(store = true)
private Integer content;
}
2:pom.xml集成es.
3:初始化
4:搜索功能
es的使用
1:首先需要创建索引。
public class Article {
private Long Id;
@Field(store = true)
private String title;
@Field(store = true)
private Integer content;
}
2:pom.xml集成es.
3:初始化
4:搜索功能