allow to provide no header (but still \n) for msearch

This commit is contained in:
Shay Banon 2012-02-20 22:01:46 +02:00
parent c6130b95e5
commit 790e727843
1 changed files with 27 additions and 25 deletions

View File

@ -77,6 +77,7 @@ public class MultiSearchRequest implements ActionRequest {
}
// now parse the action
if (nextMarker - from > 0) {
XContentParser parser = xContent.createParser(data, from, nextMarker - from);
try {
// Move to START_OBJECT, if token is null, its an empty data
@ -107,6 +108,7 @@ public class MultiSearchRequest implements ActionRequest {
} finally {
parser.close();
}
}
// move pointers
from = nextMarker + 1;