Add comment wrt to changed xcontent generation

This commit is contained in:
Isabel Drost-Fromm 2016-08-24 15:17:42 +02:00
parent cebb0ba0d8
commit 5979802415
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class ReciprocalRank extends RankedListQualityMetric<ReciprocalRank> {
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
//builder.startObject(NAME);
//builder.startObject(NAME); // TODO for roundtripping to work
builder.field(MAX_RANK_FIELD.getPreferredName(), this.maxAcceptableRank);
//builder.endObject();
builder.endObject();