Update java.asciidoc

Add few more breaking changes.

Closes #14696
This commit is contained in:
Peter Lebedev 2015-11-11 17:28:08 -05:00 committed by Clinton Gormley
parent d6a756fbe2
commit 1201843d72
1 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,12 @@ 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 The responses for these APIs will always have a `getShardFailures` method that
you can and should check for failures. you can and should check for failures.
==== IndexMissingException removed.
Use `IndexNotFoundException` instead.
==== Automatically thread client listeners ==== Automatically thread client listeners
Previously, the user had to set request listener threads to `true` when on the Previously, the user had to set request listener threads to `true` when on the
@ -112,6 +118,16 @@ You can create an InetSocketAddress instance with `InetSocketAddress(String, int
new InetSocketTransportAddress(new InetSocketAddress("127.0.0.1", 0)); new InetSocketTransportAddress(new InetSocketAddress("127.0.0.1", 0));
----------------------------- -----------------------------
==== Request Builders refactoring
An `action` parameter has been added to various request builders:
* Instead of `new SnapshotsStatusRequestBuilder(elasticSearchClient)` use `new SnapshotsStatusRequestBuilder(elasticSearchClient, SnapshotsStatusAction.INSTANCE)`.
* Instead of `new CreateSnapshotRequestBuilder(elasticSearchClient)` use `new CreateSnapshotRequestBuilder(elasticSearchClient, CreateSnapshotAction.INSTANCE)`.
* Instead of `new CreateIndexRequestBuilder(elasticSearchClient, index)` use `new CreateIndexRequestBuilder(elasticSearchClient, CreateIndexAction.INSTANCE, index)`.
==== Shading and package relocation removed ==== Shading and package relocation removed
Elasticsearch used to shade its dependencies and to relocate packages. We no longer use shading or relocation. Elasticsearch used to shade its dependencies and to relocate packages. We no longer use shading or relocation.