From 9dda1ee21a79d7b0d3ff8a4d239bf00561b9c384 Mon Sep 17 00:00:00 2001 From: Dimitrios Athanasiou Date: Wed, 30 Nov 2016 11:40:37 +0000 Subject: [PATCH] Remove redundant repetition of partition scores in mappings Original commit: elastic/x-pack-elasticsearch@4194a16529e8ef2de20c9bfffe6fb6a7d545d37e --- .../job/persistence/ElasticsearchMappings.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchMappings.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchMappings.java index c418000b2ef..81e965f2c4a 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchMappings.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchMappings.java @@ -167,23 +167,6 @@ public class ElasticsearchMappings { .startObject(AnomalyRecord.PROBABILITY.getPreferredName()) .field(TYPE, DOUBLE) .endObject() - .startObject(Bucket.PARTITION_SCORES.getPreferredName()) - .field(TYPE, NESTED) - .startObject(PROPERTIES) - .startObject(AnomalyRecord.PARTITION_FIELD_NAME.getPreferredName()) - .field(TYPE, KEYWORD) - .endObject() - .startObject(AnomalyRecord.PARTITION_FIELD_VALUE.getPreferredName()) - .field(TYPE, KEYWORD) - .endObject() - .startObject(AnomalyRecord.ANOMALY_SCORE.getPreferredName()) - .field(TYPE, DOUBLE) - .endObject() - .startObject(AnomalyRecord.PROBABILITY.getPreferredName()) - .field(TYPE, DOUBLE) - .endObject() - .endObject() - .endObject() .endObject() .endObject()