Adding additional json object level to PrecisionAtN rendering

This commit is contained in:
Christoph Büscher 2016-09-02 18:03:58 +02:00
parent 11116db337
commit 8daec109fc
1 changed files with 2 additions and 0 deletions

View File

@ -153,9 +153,11 @@ public class PrecisionAtN extends RankedListQualityMetric {
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
builder.startObject(NAME);
builder.field(SIZE_FIELD.getPreferredName(), this.n);
builder.endObject();
builder.endObject();
return builder;
}