only ask for the relevant stats
This commit is contained in:
parent
953dda2aee
commit
0c5a87608d
|
@ -57,6 +57,7 @@ public class RestShardsAction extends BaseRestHandler {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(final ClusterStateResponse clusterStateResponse) {
|
public void onResponse(final ClusterStateResponse clusterStateResponse) {
|
||||||
IndicesStatsRequest indicesStatsRequest = new IndicesStatsRequest();
|
IndicesStatsRequest indicesStatsRequest = new IndicesStatsRequest();
|
||||||
|
indicesStatsRequest.clear().docs(true).store(true);
|
||||||
client.admin().indices().stats(indicesStatsRequest, new ActionListener<IndicesStatsResponse>() {
|
client.admin().indices().stats(indicesStatsRequest, new ActionListener<IndicesStatsResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(IndicesStatsResponse indicesStatsResponse) {
|
public void onResponse(IndicesStatsResponse indicesStatsResponse) {
|
||||||
|
|
Loading…
Reference in New Issue