properly take offset and length into account (introduced with realtime get)
This commit is contained in:
parent
f851279db1
commit
475564449f
|
@ -91,7 +91,7 @@ public class RestXContentBuilder {
|
|||
} else {
|
||||
XContentType contentType = XContentFactory.xContentType(source, offset, length);
|
||||
if (contentType == builder.contentType()) {
|
||||
builder.rawField("_source", source);
|
||||
builder.rawField("_source", source, offset, length);
|
||||
} else {
|
||||
XContentParser parser = XContentFactory.xContent(contentType).createParser(source);
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue