Merge pull request #13977 from nik9000/doc_breaking_java

Add a note about shard failure in the api
This commit is contained in:
Nik Everett 2015-10-07 10:36:50 -04:00
commit b32022dce1
1 changed files with 8 additions and 2 deletions

View File

@ -32,6 +32,13 @@ Settings settings = Settings.settingsBuilder()
Client client = TransportClient.builder().settings(settings).build();
--------------------------------------------------
==== Exception are only thrown on total failure
Previously, many APIs would throw an exception if any shard failed to execute
the request. Now the exception is only thrown if all shards fail the request.
The responses for these APIs will always have a `getShardFailures` method that
you can and should check for failures.
==== Automatically thread client listeners
Previously, the user had to set request listener threads to `true` when on the
@ -121,4 +128,3 @@ You might need to change your imports to the original package names:
* `com.tdunning.math.stats` was `org.elasticsearch.common.stats`
* `org.apache.commons.lang` was `org.elasticsearch.common.lang`
* `org.apache.commons.cli` was `org.elasticsearch.common.cli.commons`