only ask for the relevant stats

This commit is contained in:
Shay Banon 2013-07-04 14:40:28 +02:00
parent 953dda2aee
commit 0c5a87608d
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public class RestShardsAction extends BaseRestHandler {
@Override
public void onResponse(final ClusterStateResponse clusterStateResponse) {
IndicesStatsRequest indicesStatsRequest = new IndicesStatsRequest();
indicesStatsRequest.clear().docs(true).store(true);
client.admin().indices().stats(indicesStatsRequest, new ActionListener<IndicesStatsResponse>() {
@Override
public void onResponse(IndicesStatsResponse indicesStatsResponse) {