From 6ef0e4dddaafe0b2b93233c61a33afdba56a4164 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 26 Dec 2012 16:31:55 -0800 Subject: [PATCH] fix type to types --- .../org/elasticsearch/action/search/MultiSearchRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/action/search/MultiSearchRequest.java b/src/main/java/org/elasticsearch/action/search/MultiSearchRequest.java index dcc88ab9144..60ead9040b9 100644 --- a/src/main/java/org/elasticsearch/action/search/MultiSearchRequest.java +++ b/src/main/java/org/elasticsearch/action/search/MultiSearchRequest.java @@ -129,7 +129,7 @@ public class MultiSearchRequest extends ActionRequest { } else if (token == XContentParser.Token.START_ARRAY) { if ("index".equals(currentFieldName) || "indices".equals(currentFieldName)) { searchRequest.indices(parseArray(parser)); - } else if ("type".equals(currentFieldName) || "type".equals(currentFieldName)) { + } else if ("type".equals(currentFieldName) || "types".equals(currentFieldName)) { searchRequest.types(parseArray(parser)); } else { throw new ElasticSearchParseException(currentFieldName + " doesn't support arrays");