@Override public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { searchHits.toXContent(builder, params); return builder; }
@Override protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { return searchHits.toXContent(builder, params); }
@Override public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { hits.toXContent(builder, params); if (aggregations != null) { aggregations.toXContent(builder, params); } if (suggest != null) { suggest.toXContent(builder, params); } if (profileResults != null) { profileResults.toXContent(builder, params); } return builder; }
for (Map.Entry<String, SearchHits> entry : innerHits.entrySet()) { builder.startObject(entry.getKey()); entry.getValue().toXContent(builder, params); builder.endObject();
@Override public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { searchHits.toXContent(builder, params); return builder; }
@Override public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { searchHits.toXContent(builder, params); return builder; } }
@Override public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { searchHits.toXContent(builder, params); return builder; }
@Override protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { return searchHits.toXContent(builder, params); }
@Override protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { return searchHits.toXContent(builder, params); }
@Override protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { return searchHits.toXContent(builder, params); }
@Override public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { hits.toXContent(builder, params); if (aggregations != null) { aggregations.toXContent(builder, params); } if (suggest != null) { suggest.toXContent(builder, params); } if (profileResults != null) { profileResults.toXContent(builder, params); } return builder; }
@Override public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { hits.toXContent(builder, params); if (aggregations != null) { aggregations.toXContent(builder, params); } if (suggest != null) { suggest.toXContent(builder, params); } if (profileResults != null) { profileResults.toXContent(builder, params); } return builder; }
@Override public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { hits.toXContent(builder, params); if (aggregations != null) { aggregations.toXContent(builder, params); } if (suggest != null) { suggest.toXContent(builder, params); } if (profileResults != null) { profileResults.toXContent(builder, params); } return builder; }
for (Map.Entry<String, SearchHits> entry : innerHits.entrySet()) { builder.startObject(entry.getKey()); entry.getValue().toXContent(builder, params); builder.endObject();
for (Map.Entry<String, SearchHits> entry : innerHits.entrySet()) { builder.startObject(entry.getKey()); entry.getValue().toXContent(builder, params); builder.endObject();
for (Map.Entry<String, SearchHits> entry : innerHits.entrySet()) { builder.startObject(entry.getKey()); entry.getValue().toXContent(builder, params); builder.endObject();