From 15453272f7e34d22bb9d21647fad21526af9f7de Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 26 Sep 2012 23:47:27 +0200 Subject: [PATCH] fetching a shape should not occur on separate thread --- .../org/elasticsearch/index/search/shape/ShapeFetchService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/search/shape/ShapeFetchService.java b/src/main/java/org/elasticsearch/index/search/shape/ShapeFetchService.java index 8cdd436570d..f53f740694d 100644 --- a/src/main/java/org/elasticsearch/index/search/shape/ShapeFetchService.java +++ b/src/main/java/org/elasticsearch/index/search/shape/ShapeFetchService.java @@ -58,7 +58,7 @@ public class ShapeFetchService extends AbstractComponent { * @throws IOException Can be thrown while parsing the Shape Document and extracting the Shape */ public Shape fetch(String id, String type, String index, String shapeField) throws IOException { - GetResponse response = client.get(new GetRequest(index, type, id).preference("_local")).actionGet(); + GetResponse response = client.get(new GetRequest(index, type, id).preference("_local").operationThreaded(false)).actionGet(); if (!response.exists()) { throw new ElasticSearchIllegalArgumentException("Shape with ID [" + id + "] in type [" + type + "] not found"); }