GET document response returns exists field twice, closes #1926.
This commit is contained in:
parent
42eda48c15
commit
ddecd723a7
|
@ -298,7 +298,6 @@ public class GetResult implements Streamable, Iterable<GetField>, ToXContent {
|
||||||
if (version != -1) {
|
if (version != -1) {
|
||||||
builder.field(Fields._VERSION, version);
|
builder.field(Fields._VERSION, version);
|
||||||
}
|
}
|
||||||
builder.field(Fields.EXISTS, true);
|
|
||||||
toXContentEmbedded(builder, params);
|
toXContentEmbedded(builder, params);
|
||||||
|
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
|
|
Loading…
Reference in New Issue