使用 shuf 来打乱一个文件中的行或是选择文件中一个随机的行。

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

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

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

shiyuan

赞同来自: yongde

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

要回复问题请先登录注册