diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt b/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt index f121138b7..a9d555778 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt @@ -143,7 +143,7 @@ class BucketSelectorExtAggregator : SiblingPipelineAggregator { private fun isAccepted(obj: Any, filter: IncludeExclude?): Boolean { return when (obj.javaClass) { String::class.java -> { - val stringFilter = filter!!.convertToStringFilter(DocValueFormat.RAW) + val stringFilter = filter!!.convertToStringFilter(DocValueFormat.RAW, null) stringFilter.accept(BytesRef(obj as String)) } java.lang.Long::class.java, Long::class.java -> {