public interface IESFactory
| 限定符和类型 | 方法和说明 |
|---|---|
org.elasticsearch.action.support.master.AcknowledgedResponse |
delete(String index)
删除索引及数据
|
org.elasticsearch.action.delete.DeleteResponse |
delete(String index,
String type,
String id)
通过id删除数据
|
ESSearchBuilder |
getBuilder()
获取构造器
|
org.elasticsearch.client.RestHighLevelClient |
getClient()
获取链接
|
AbstractESQuery |
getQuery()
获取es查询实现类
|
org.elasticsearch.action.index.IndexResponse |
insert(String data,
String index,
String type)
新增
|
<T> org.elasticsearch.action.index.IndexResponse |
insert(T t)
新增
|
<T> org.elasticsearch.action.index.IndexResponse |
insert(T data,
String index,
String type)
新增
|
void |
setClient(org.elasticsearch.client.RestHighLevelClient client) |
void |
setName(String name) |
org.elasticsearch.action.update.UpdateResponse |
update(String data,
String index,
String type,
String id)
数据更新
|
<T> org.elasticsearch.action.update.UpdateResponse |
update(T t,
String id)
修改
|
<T> org.elasticsearch.action.update.UpdateResponse |
update(T data,
String index,
String type,
String id)
数据更新
|
org.elasticsearch.action.support.master.AcknowledgedResponse |
updateIndexProperties(String index,
String type,
IndexProperties properties)
更新索引属性
|
void setName(String name)
void setClient(org.elasticsearch.client.RestHighLevelClient client)
ESSearchBuilder getBuilder()
AbstractESQuery getQuery()
<T> org.elasticsearch.action.index.IndexResponse insert(T t)
throws IOException
t - 新增的数据IOException<T> org.elasticsearch.action.index.IndexResponse insert(T data,
String index,
String type)
throws IOException
data - 新增的数据index - 新增的数据中的索引type - 新增的数据中的类型IOException - io异常org.elasticsearch.action.index.IndexResponse insert(String data, String index, String type) throws IOException
data - 新增的数据index - 新增的数据中的索引type - 新增的数据中的类型IOException - io异常<T> org.elasticsearch.action.update.UpdateResponse update(T t,
String id)
throws IOException
t - 修改的数据id - 修改的idIOException - io异常org.elasticsearch.action.update.UpdateResponse update(String data, String index, String type, String id) throws IOException
data - 更新的数据index - 更新的索引type - 更新的类型id - 更新的idIOException - io异常<T> org.elasticsearch.action.update.UpdateResponse update(T data,
String index,
String type,
String id)
throws IOException
data - 更新的数据index - 更新的索引type - 更新的类型id - 更新的idIOException - io异常org.elasticsearch.action.support.master.AcknowledgedResponse delete(String index) throws IOException
index - 索引IOExceptionorg.elasticsearch.action.delete.DeleteResponse delete(String index, String type, String id) throws IOException
index - 删除的索引type - 删除的索引类型id - 删除的idIOExceptionorg.elasticsearch.client.RestHighLevelClient getClient()
org.elasticsearch.action.support.master.AcknowledgedResponse updateIndexProperties(String index, String type, IndexProperties properties) throws Exception
index - 更新的索引type - 更新的索引类型properties - 更新的属性Exception - 更新异常Copyright © 2019. All rights reserved.