This commit is contained in:
David Pilato 2014-01-28 10:11:07 +01:00
parent 6aaddb03f1
commit 1da5f3af67
1 changed files with 2 additions and 4 deletions

View File

@ -61,10 +61,8 @@ public class RestMultiTermVectorsAction extends BaseRestHandler {
RestTermVectorAction.readURIParameters(template, request);
multiTermVectorsRequest.ids(Strings.commaDelimitedListToStringArray(request.param("ids")));
BytesReference content = null;
if (request.hasContent()) {
content = request.content();
} else {
BytesReference content = request.content();
if (!request.hasContent()) {
String source = request.param("source");
if (source != null) {
content = new BytesArray(source);