diff --git a/docs/plugins/reindex.asciidoc b/docs/plugins/reindex.asciidoc index c4bdb60f8b8..a1106941c67 100644 --- a/docs/plugins/reindex.asciidoc +++ b/docs/plugins/reindex.asciidoc @@ -466,12 +466,12 @@ Sending the `refresh` url parameter will cause all indexes to which the request wrote to be refreshed. This is different than the Index API's `refresh` parameter which causes just the shard that received the new data to be indexed. -If the request contains `wait_for_completion=false` then Elaasticsearch will +If the request contains `wait_for_completion=false` then Elasticsearch will perform some preflight checks, launch the request, and then return a `task` which can be used with {ref}/tasks.html[Tasks APIs] to cancel or get the status of the task. For now, once the request is finished the task is gone and the only place to look for the ultimate result of the task is in the Elasticsearch -log file. This be fixed soon. +log file. This will be fixed soon. `consistency` controls how many copies of a shard must respond to each write request. `timeout` controls how long each write request waits for unavailable diff --git a/plugins/reindex/src/main/java/org/elasticsearch/plugin/reindex/AbstractBaseReindexRestHandler.java b/plugins/reindex/src/main/java/org/elasticsearch/plugin/reindex/AbstractBaseReindexRestHandler.java index 56fc8e29f35..18712fb6aa1 100644 --- a/plugins/reindex/src/main/java/org/elasticsearch/plugin/reindex/AbstractBaseReindexRestHandler.java +++ b/plugins/reindex/src/main/java/org/elasticsearch/plugin/reindex/AbstractBaseReindexRestHandler.java @@ -19,6 +19,8 @@ package org.elasticsearch.plugin.reindex; +import java.io.IOException; + import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.NoopActionListener; @@ -36,8 +38,6 @@ import org.elasticsearch.rest.RestRequest; import org.elasticsearch.rest.RestStatus; import org.elasticsearch.tasks.Task; -import java.io.IOException; - public abstract class AbstractBaseReindexRestHandler, Response extends BulkIndexByScrollResponse, TA extends TransportAction> extends BaseRestHandler { protected final IndicesQueriesRegistry indicesQueriesRegistry; @@ -58,8 +58,9 @@ public abstract class AbstractBaseReindexRestHandler