diff --git a/pom.xml b/pom.xml
index 2ce8918..42c562b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
https://github.com/crate/elasticsearch-inout-plugin
- 0.90.3
+ 0.90.6
UTF-8
diff --git a/src/main/java/crate/elasticsearch/action/export/AbstractTransportExportAction.java b/src/main/java/crate/elasticsearch/action/export/AbstractTransportExportAction.java
index c6e0eda..1f0f1a6 100644
--- a/src/main/java/crate/elasticsearch/action/export/AbstractTransportExportAction.java
+++ b/src/main/java/crate/elasticsearch/action/export/AbstractTransportExportAction.java
@@ -149,7 +149,7 @@ protected ShardExportResponse shardOperation(ShardExportRequest request) throws
SearchShardTarget shardTarget = new SearchShardTarget(clusterService.localNode().id(), request.index(), request.shardId());
ExportContext context = new ExportContext(0,
new ShardSearchRequest().types(request.types()).filteringAliases(request.filteringAliases()),
- shardTarget, indexShard.searcher(), indexService, indexShard, scriptService, cacheRecycler, nodePath);
+ shardTarget, indexShard.acquireSearcher("inout"), indexService, indexShard, scriptService, cacheRecycler, nodePath);
ExportContext.setCurrent(context);
try {
diff --git a/src/main/java/crate/elasticsearch/action/export/ExportRequest.java b/src/main/java/crate/elasticsearch/action/export/ExportRequest.java
index 38578e0..641dd26 100644
--- a/src/main/java/crate/elasticsearch/action/export/ExportRequest.java
+++ b/src/main/java/crate/elasticsearch/action/export/ExportRequest.java
@@ -3,7 +3,6 @@
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.support.broadcast.BroadcastOperationRequest;
import org.elasticsearch.common.Nullable;
-import org.elasticsearch.common.Required;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
@@ -60,13 +59,11 @@ public BytesReference source() {
return source;
}
- @Required
public ExportRequest source(String source) {
return this.source(new BytesArray(source), false);
}
- @Required
public ExportRequest source(BytesReference source, boolean unsafe) {
this.source = source;
this.querySourceUnsafe = unsafe;
diff --git a/src/main/java/crate/elasticsearch/action/import_/ImportRequest.java b/src/main/java/crate/elasticsearch/action/import_/ImportRequest.java
index a9863b7..ae690e7 100644
--- a/src/main/java/crate/elasticsearch/action/import_/ImportRequest.java
+++ b/src/main/java/crate/elasticsearch/action/import_/ImportRequest.java
@@ -1,7 +1,6 @@
package crate.elasticsearch.action.import_;
import org.elasticsearch.action.support.nodes.NodesOperationRequest;
-import org.elasticsearch.common.Required;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.io.stream.StreamInput;
@@ -32,12 +31,10 @@ public BytesReference source() {
return source;
}
- @Required
public ImportRequest source(String source) {
return this.source(new BytesArray(source), false);
}
- @Required
public ImportRequest source(BytesReference source, boolean unsafe) {
this.source = source;
return this;
diff --git a/src/main/java/crate/elasticsearch/action/searchinto/AbstractTransportSearchIntoAction.java b/src/main/java/crate/elasticsearch/action/searchinto/AbstractTransportSearchIntoAction.java
index 07320ab..3d36087 100644
--- a/src/main/java/crate/elasticsearch/action/searchinto/AbstractTransportSearchIntoAction.java
+++ b/src/main/java/crate/elasticsearch/action/searchinto/AbstractTransportSearchIntoAction.java
@@ -168,7 +168,7 @@ protected ShardSearchIntoResponse shardOperation(ShardSearchIntoRequest
request.shardId());
SearchIntoContext context = new SearchIntoContext(0,
new ShardSearchRequest().types(request.types()).filteringAliases(request.filteringAliases()),
- shardTarget, indexShard.searcher(), indexService, indexShard, scriptService, cacheRecycler
+ shardTarget, indexShard.acquireSearcher("inout"), indexService, indexShard, scriptService, cacheRecycler
);
SearchIntoContext.setCurrent(context);
diff --git a/src/main/java/crate/elasticsearch/action/searchinto/SearchIntoRequest.java b/src/main/java/crate/elasticsearch/action/searchinto/SearchIntoRequest.java
index b2985e3..0944865 100644
--- a/src/main/java/crate/elasticsearch/action/searchinto/SearchIntoRequest.java
+++ b/src/main/java/crate/elasticsearch/action/searchinto/SearchIntoRequest.java
@@ -3,7 +3,6 @@
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.support.broadcast.BroadcastOperationRequest;
import org.elasticsearch.common.Nullable;
-import org.elasticsearch.common.Required;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
@@ -63,13 +62,11 @@ public BytesReference source() {
return source;
}
- @Required
public SearchIntoRequest source(String source) {
return this.source(new BytesArray(source), false);
}
- @Required
public SearchIntoRequest source(BytesReference source, boolean unsafe) {
this.source = source;
this.querySourceUnsafe = unsafe;
diff --git a/src/main/java/crate/elasticsearch/rest/action/admin/export/RestExportAction.java b/src/main/java/crate/elasticsearch/rest/action/admin/export/RestExportAction.java
index 0e16b14..d927f0a 100644
--- a/src/main/java/crate/elasticsearch/rest/action/admin/export/RestExportAction.java
+++ b/src/main/java/crate/elasticsearch/rest/action/admin/export/RestExportAction.java
@@ -3,7 +3,7 @@
import static org.elasticsearch.rest.RestRequest.Method.POST;
import static org.elasticsearch.rest.RestStatus.BAD_REQUEST;
import static org.elasticsearch.rest.RestStatus.OK;
-import static org.elasticsearch.rest.action.support.RestActions.splitTypes;
+import static org.elasticsearch.common.Strings.splitStringByCommaToArray;
import java.io.IOException;
@@ -52,7 +52,7 @@ protected Action action() {
}
public void handleRequest(final RestRequest request, final RestChannel channel) {
- ExportRequest exportRequest = new ExportRequest(RestActions.splitIndices(request.param("index")));
+ ExportRequest exportRequest = new ExportRequest(splitStringByCommaToArray(request.param("index")));
if (request.hasParam("ignore_indices")) {
exportRequest.ignoreIndices(IgnoreIndices.fromString(request.param("ignore_indices")));
@@ -79,7 +79,7 @@ public void handleRequest(final RestRequest request, final RestChannel channel)
}
}
exportRequest.routing(request.param("routing"));
- exportRequest.types(splitTypes(request.param("type")));
+ exportRequest.types(splitStringByCommaToArray(request.param("type")));
exportRequest.preference(request.param("preference", "_primary"));
} catch (Exception e) {
try {
diff --git a/src/main/java/crate/elasticsearch/rest/action/admin/searchinto/RestSearchIntoAction.java b/src/main/java/crate/elasticsearch/rest/action/admin/searchinto/RestSearchIntoAction.java
index 85af589..2fb6162 100644
--- a/src/main/java/crate/elasticsearch/rest/action/admin/searchinto/RestSearchIntoAction.java
+++ b/src/main/java/crate/elasticsearch/rest/action/admin/searchinto/RestSearchIntoAction.java
@@ -3,7 +3,7 @@
import static org.elasticsearch.rest.RestRequest.Method.POST;
import static org.elasticsearch.rest.RestStatus.BAD_REQUEST;
import static org.elasticsearch.rest.RestStatus.OK;
-import static org.elasticsearch.rest.action.support.RestActions.splitTypes;
+import static org.elasticsearch.common.Strings.splitStringByCommaToArray;
import java.io.IOException;
@@ -55,7 +55,7 @@ protected Action>> post("/test/_close", {})
{"ok":true,"acknowledged":true}
>>> put("/test/_settings", {"analysis": {"analyzer": {"myan": {"type": "stop", "stopwords": ["nice"]}}}})
- {"ok":true}
+ {"ok":true,"acknowledged":true}
>>> post("/test/_open", {})
{"ok":true,"acknowledged":true}
>>> refresh()