我刚打酱油去了,不好意思

自定义的插件如何读取es中的索引,应该调用什么接口?

Elasticsearch | 作者 yongde | 发布于2018年02月01日 | 阅读数:2154

自定义的插件如何读取es中的索引,应该调用什么接口?
已邀请:

shiyuan

赞同来自: yongde

transportService.submitRequest(node, SearchAction.NAME, new SearchRequest().indices("test_index"), new FutureTransportResponseHandler<SearchResponse>() {
@Override
public SearchResponse newInstance() {
return new SearchResponse();
}
}).txGet();

要回复问题请先登录注册