File tree 1 file changed +2
-2
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public CategoryDefinition(StreamInput in) throws IOException {
78
78
regex = in .readString ();
79
79
maxMatchingLength = in .readLong ();
80
80
examples = new TreeSet <>(in .readList (StreamInput ::readString ));
81
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
81
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
82
82
grokPattern = in .readOptionalString ();
83
83
}
84
84
}
@@ -91,7 +91,7 @@ public void writeTo(StreamOutput out) throws IOException {
91
91
out .writeString (regex );
92
92
out .writeLong (maxMatchingLength );
93
93
out .writeStringList (new ArrayList <>(examples ));
94
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
94
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
95
95
out .writeOptionalString (grokPattern );
96
96
}
97
97
}
You can’t perform that action at this time.
0 commit comments