[ML] Ignore _doc_count field in data frame analytics (#64541)

This field is added from version 7.11 onwards. We are
adding it to the list of ignored fields for data frame analytics
in 7.10 to avoid failing to start an outlier detection job
in a mixed cluster environment.

Relates #64503
This commit is contained in:
Dimitris Athanasiou 2020-11-03 19:53:17 +02:00 committed by GitHub
parent 1fb6206fbc
commit e3fee3e6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class ExtractedFieldsDetector {
*/
private static final List<String> IGNORE_FIELDS = Arrays.asList("_id", "_field_names", "_index", "_parent", "_routing", "_seq_no",
"_source", "_type", "_uid", "_version", "_feature", "_ignored", DestinationIndex.INCREMENTAL_ID,
"_data_stream_timestamp");
"_data_stream_timestamp", "_doc_count");
private final DataFrameAnalyticsConfig config;
private final int docValueFieldsLimit;