Document breaking change in ClusterHealthResponse in 2.2

This commit is contained in:
Daniel Mitterdorfer 2016-03-11 08:46:10 +01:00
parent efd59f531d
commit 94aa025b93
1 changed files with 15 additions and 0 deletions

View File

@ -43,6 +43,21 @@ changed to now route standard output to the journal and standard error
to inherit this setting (these are the defaults for systemd). These
settings can be modified by editing the `elasticsearch.service` file.
[float]
=== Java Client
Previously it was possible to iterate over `ClusterHealthResponse` to get information about `ClusterIndexHealth`.
While this is still possible, it requires now iterating over the values returned from `getIndices()`:
[source,java]
---------------
ClusterHealthResponse clusterHealthResponse = client.admin().cluster().prepareHealth().get();
for (Map.Entry<String, ClusterIndexHealth> index : clusterHealthResponse.getIndices().entrySet()) {
String indexName = index.getKey();
ClusterIndexHealth health = index.getValue();
}
---------------
[float]
=== Cloud AWS Plugin