fix type to types
This commit is contained in:
parent
660d0ceba9
commit
6ef0e4ddda
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue