fix type to types

This commit is contained in:
Shay Banon 2012-12-26 16:31:55 -08:00
parent 660d0ceba9
commit 6ef0e4ddda
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class MultiSearchRequest extends ActionRequest<MultiSearchRequest> {
} 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");