Move count to the top of QueryPage (elastic/elasticsearch#452)

Original commit: elastic/x-pack-elasticsearch@8973bde039
This commit is contained in:
Dimitris Athanasiou 2016-12-02 17:22:08 +00:00 committed by GitHub
parent 385ec37bc3
commit f10c4818e7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}