mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Add comment wrt to changed xcontent generation
This commit is contained in:
parent
cebb0ba0d8
commit
5979802415
@ -160,7 +160,7 @@ public class ReciprocalRank extends RankedListQualityMetric<ReciprocalRank> {
|
|||||||
@Override
|
@Override
|
||||||
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||||
builder.startObject();
|
builder.startObject();
|
||||||
//builder.startObject(NAME);
|
//builder.startObject(NAME); // TODO for roundtripping to work
|
||||||
builder.field(MAX_RANK_FIELD.getPreferredName(), this.maxAcceptableRank);
|
builder.field(MAX_RANK_FIELD.getPreferredName(), this.maxAcceptableRank);
|
||||||
//builder.endObject();
|
//builder.endObject();
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user