[ML] Fix broken backwards compatibility of field names (elastic/x-pack-elasticsearch#3463)

Original commit: elastic/x-pack-elasticsearch@613943dfe7
This commit is contained in:
David Kyle 2018-01-04 10:05:16 +00:00 committed by GitHub
parent 3b06254573
commit 46c1272ed3
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ public class Detector implements ToXContentObject, Writeable {
public static final ParseField PARTITION_FIELD_NAME_FIELD = new ParseField("partition_field_name");
public static final ParseField USE_NULL_FIELD = new ParseField("use_null");
public static final ParseField EXCLUDE_FREQUENT_FIELD = new ParseField("exclude_frequent");
public static final ParseField RULES_FIELD = new ParseField("rules");
// TODO: Remove the deprecated detector_rules setting in 7.0
public static final ParseField RULES_FIELD = new ParseField("rules", "detector_rules");
public static final ParseField DETECTOR_INDEX = new ParseField("detector_index");
// These parsers follow the pattern that metadata is parsed leniently (to allow for enhancements), whilst config is parsed strictly