Skip to content

Commit

Permalink
Update TransportGetFindingsSearchAction.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 16, 2022
1 parent 20f1cbd commit dcfa2f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit dcfa2f0

Please sign in to comment.