Skip to content

Commit

Permalink
Added fields for MultiTermVectors (elastic#42232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojasgulati committed Jun 4, 2019
1 parent 56a662e commit 7a90b48
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
builder.field("_type", type);
}
if (id != null) builder.field("_id", id);
if (fields != null) builder.field("fields", fields);
// set values only when different from defaults
if (requestPositions == false) builder.field("positions", false);
if (requestPayloads == false) builder.field("payloads", false);
Expand Down

0 comments on commit 7a90b48

Please sign in to comment.