public interface EsIndexService
限定符和类型 | 方法和说明 |
---|---|
<T> boolean |
createIndex(Class<T> clazz)
创建索引
|
boolean |
createIndex(org.elasticsearch.client.indices.CreateIndexRequest request)
创建索引
|
<T> boolean |
deleteIndex(Class<T> clazz)
删除索引
|
boolean |
deleteIndex(String index)
删除
|
boolean |
existsIndex(String index)
索引是否存在
|
<T> boolean createIndex(Class<T> clazz)
clazz
- 注解使用请参照 spring-data-elasticsearch
org.springframework.data.annotation.Id;
org.springframework.data.elasticsearch.annotations.DateFormat;
org.springframework.data.elasticsearch.annotations.Document;
org.springframework.data.elasticsearch.annotations.Field;
org.springframework.data.elasticsearch.annotations.FieldType;boolean createIndex(org.elasticsearch.client.indices.CreateIndexRequest request)
request
- 索引参数<T> boolean deleteIndex(Class<T> clazz)
clazz
- 注解使用请参照 spring-data-elasticsearch
org.springframework.data.annotation.Id;
org.springframework.data.elasticsearch.annotations.DateFormat;
org.springframework.data.elasticsearch.annotations.Document;
org.springframework.data.elasticsearch.annotations.Field;
org.springframework.data.elasticsearch.annotations.FieldType;boolean deleteIndex(String index)
index
- 索引名boolean existsIndex(String index)
index
- 索引名