From a9b0534b005b20afb3072464099097ee72156b5f Mon Sep 17 00:00:00 2001 From: Raj Chakravarthi Date: Tue, 10 Jan 2023 21:20:25 -0500 Subject: [PATCH] removed a line that was accidentally commited Signed-off-by: Raj Chakravarthi --- .../transport/TransportIndexDetectorAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java index 2bd0cfe32..9366f5dcd 100644 --- a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java +++ b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java @@ -695,8 +695,7 @@ void prepareDetectorIndexing() throws IOException { void createDetector() { Detector detector = request.getDetector(); - //if (detectorIndices.detectorIndexExists()) { - if (false) { + if (detectorIndices.detectorIndexExists()) { NestedQueryBuilder queryBuilder = QueryBuilders.nestedQuery( "detector",