代码:
String deletebyquery = "{\"query\":{\"range\":{\"timestamp\":{\"gte\":\"2016-09-01T01:01:00.039+0000\",\"lt\":\"2016-09-06T06:23:54.039+0000\"}}}}";
DeleteByQueryResponse response = new DeleteByQueryRequestBuilder(Client.getClient(),
DeleteByQueryAction.INSTANCE)
.setIndices("index_data")
.setTypes("type_data")
.setSource(deletebyquery)
.execute()
.actionGet();
报错:
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is ActionNotFoundTransportException[No handler for action [indices:data/write/delete/by_query]]
root cause
ActionNotFoundTransportException[No handler for action [indices:data/write/delete/by_query]]
1 个回复
liangkuai
赞同来自: