Indexing a document in smile format and getting it through REST in json format fails, closes #1816.
This commit is contained in:
parent
269798c70a
commit
f9eeb37211
|
@ -89,7 +89,7 @@ public class RestXContentBuilder {
|
|||
if (contentType == builder.contentType()) {
|
||||
builder.rawField("_source", source, offset, length);
|
||||
} else {
|
||||
XContentParser parser = XContentFactory.xContent(contentType).createParser(source);
|
||||
XContentParser parser = XContentFactory.xContent(contentType).createParser(source, offset, length);
|
||||
try {
|
||||
parser.nextToken();
|
||||
builder.field("_source");
|
||||
|
|
Loading…
Reference in New Issue