From 1201843d723b297785d17be9325a4b94e31a9503 Mon Sep 17 00:00:00 2001 From: Peter Lebedev Date: Wed, 11 Nov 2015 17:28:08 -0500 Subject: [PATCH] Update java.asciidoc Add few more breaking changes. Closes #14696 --- .../migration/migrate_2_0/java.asciidoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/reference/migration/migrate_2_0/java.asciidoc b/docs/reference/migration/migrate_2_0/java.asciidoc index 3859cb07bd7..b2f5ee63e0d 100644 --- a/docs/reference/migration/migrate_2_0/java.asciidoc +++ b/docs/reference/migration/migrate_2_0/java.asciidoc @@ -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 you can and should check for failures. + +==== IndexMissingException removed. + +Use `IndexNotFoundException` instead. + + ==== Automatically thread client listeners 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)); ----------------------------- +==== 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 Elasticsearch used to shade its dependencies and to relocate packages. We no longer use shading or relocation.