diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt index a1ffc44e4..b23e81355 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt @@ -235,7 +235,7 @@ class DocumentLevelMonitorRunner : MonitorRunner() { } val fieldsToBeQueried = mutableSetOf() - if (monitorCtx.fetchOnlyQueryFieldNames) { + if (monitorCtx.fetchOnlyQueryFieldNames) { for (it in queries) { if (it.queryFieldNames.isEmpty()) { fieldsToBeQueried.clear()