diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt b/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt index bfb36e997..4b709e83b 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt @@ -30,8 +30,8 @@ import org.opensearch.common.xcontent.XContentParser import org.opensearch.common.xcontent.XContentParserUtils import org.opensearch.common.xcontent.XContentType import org.opensearch.commons.authuser.User -import org.opensearch.index.query.Operator import org.opensearch.index.query.MatchAllQueryBuilder +import org.opensearch.index.query.Operator import org.opensearch.index.query.QueryBuilders import org.opensearch.rest.RestStatus import org.opensearch.search.builder.SearchSourceBuilder @@ -85,7 +85,7 @@ class TransportGetFindingsSearchAction @Inject constructor( .fetchSource(FetchSourceContext(true, Strings.EMPTY_ARRAY, Strings.EMPTY_ARRAY)) .seqNoAndPrimaryTerm(true) .version(true) - val queryBuilder = MatchAllQueryBuilders.matchAllQuery() + val queryBuilder = MatchAllQueryBuilder.matchAllQuery() // TODO: Update query to support other parameters of search if (!getFindingsSearchRequest.findingId.isNullOrBlank())