Skip to content

Commit

Permalink
Filter indices stats for translog
Browse files Browse the repository at this point in the history
Added the missing call in the RestAction, closes elastic#8262
  • Loading branch information
fhopf committed Oct 29, 2014
1 parent b23e6e0 commit 9e38da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/indices/stats.asciidoc
Expand Up @@ -47,6 +47,7 @@ specified as well in the URI. Those stats can be any of:
`refresh`:: Refresh statistics.
`suggest`:: Suggest statistics.
`warmer`:: Warmer statistics.
`translog`:: Translog statistics.

Some statistics allow per field granularity which accepts a list
comma-separated list of included fields. By default all fields are included:
Expand Down
Expand Up @@ -81,6 +81,7 @@ public void handleRequest(final RestRequest request, final RestChannel channel,
indicesStatsRequest.completion(metrics.contains("completion"));
indicesStatsRequest.suggest(metrics.contains("suggest"));
indicesStatsRequest.queryCache(metrics.contains("query_cache"));
indicesStatsRequest.translog(metrics.contains("translog"));
}

if (request.hasParam("groups")) {
Expand Down

0 comments on commit 9e38da2

Please sign in to comment.