mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
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 {
|
public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {
|
||||||
builder.field(resultsField.getPreferredName(), results);
|
|
||||||
builder.field(COUNT.getPreferredName(), count);
|
builder.field(COUNT.getPreferredName(), count);
|
||||||
|
builder.field(resultsField.getPreferredName(), results);
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user