Skip to content

Commit

Permalink
Fix mappings and test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Aug 8, 2018
1 parent 6e2571e commit d757f1f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,16 @@ public static void addJobConfigFields(XContentBuilder builder) throws IOExceptio
.endObject()
.startObject(DetectionRule.CONDITIONS_FIELD.getPreferredName())
.field(TYPE, NESTED)
.startObject(RuleCondition.APPLIES_TO_FIELD.getPreferredName())
.field(TYPE, KEYWORD)
.endObject()
.startObject(Operator.OPERATOR_FIELD.getPreferredName())
.field(TYPE, KEYWORD)
.endObject()
.startObject(RuleCondition.VALUE_FIELD.getPreferredName())
.field(TYPE, DOUBLE)
.startObject(PROPERTIES)
.startObject(RuleCondition.APPLIES_TO_FIELD.getPreferredName())
.field(TYPE, KEYWORD)
.endObject()
.startObject(Operator.OPERATOR_FIELD.getPreferredName())
.field(TYPE, KEYWORD)
.endObject()
.startObject(RuleCondition.VALUE_FIELD.getPreferredName())
.field(TYPE, DOUBLE)
.endObject()
.endObject()
.endObject()
.endObject()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ public final class ReservedFieldNames {
Job.RESULTS_RETENTION_DAYS.getPreferredName(),
Job.MODEL_SNAPSHOT_ID.getPreferredName(),
Job.RESULTS_INDEX_NAME.getPreferredName(),
Job.DELETED.getPreferredName(),

AnalysisConfig.BUCKET_SPAN.getPreferredName(),
AnalysisConfig.CATEGORIZATION_FIELD_NAME.getPreferredName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package org.elasticsearch.xpack.ml.job.results;

import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.xpack.core.ml.job.config.Job;
import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord;
import org.elasticsearch.xpack.core.ml.job.results.ReservedFieldNames;

Expand Down

0 comments on commit d757f1f

Please sign in to comment.