Move count to the top of QueryPage (elastic/elasticsearch#452)
Original commit: elastic/x-pack-elasticsearch@8973bde039
This commit is contained in:
parent
385ec37bc3
commit
f10c4818e7
|
@ -66,8 +66,8 @@ public final class QueryPage<T extends ToXContent & Writeable> extends ToXConten
|
|||
}
|
||||
|
||||
public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {
|
||||
builder.field(resultsField.getPreferredName(), results);
|
||||
builder.field(COUNT.getPreferredName(), count);
|
||||
builder.field(resultsField.getPreferredName(), results);
|
||||
return builder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue