Skip to content

Commit

Permalink
Add 'ilm_pilicy' field definition back to DataStream
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianli Feng committed Feb 3, 2021
1 parent 5dd4a82 commit dcf00b6
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -87,6 +87,7 @@ public String getIlmPolicyName() {
public static final ParseField GENERATION_FIELD = new ParseField("generation");
public static final ParseField STATUS_FIELD = new ParseField("status");
public static final ParseField INDEX_TEMPLATE_FIELD = new ParseField("template");
public static final ParseField ILM_POLICY_FIELD = new ParseField("ilm_policy");

@SuppressWarnings("unchecked")
private static final ConstructingObjectParser<DataStream, Void> PARSER = new ConstructingObjectParser<>("data_stream",
Expand All @@ -110,6 +111,7 @@ public String getIlmPolicyName() {
PARSER.declareLong(ConstructingObjectParser.constructorArg(), GENERATION_FIELD);
PARSER.declareString(ConstructingObjectParser.constructorArg(), STATUS_FIELD);
PARSER.declareString(ConstructingObjectParser.optionalConstructorArg(), INDEX_TEMPLATE_FIELD);
PARSER.declareString(ConstructingObjectParser.optionalConstructorArg(), ILM_POLICY_FIELD);
}

public static DataStream fromXContent(XContentParser parser) throws IOException {
Expand Down

0 comments on commit dcf00b6

Please sign in to comment.