Revert "Revert "Unified Storage: Use match all query instead of wildcard for not-in requirement query"" (#102074)

Revert "Revert "Unified Storage: Use match all query instead of wildcard for …"

This reverts commit 4d9bcc6c44.
pull/102076/head
owensmallwood 2 months ago committed by GitHub
parent 64b65ffc72
commit 56293d8019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/storage/unified/search/bleve.go

@ -803,7 +803,7 @@ func requirementQuery(req *resource.Requirement, prefix string) (query.Query, *r
boolQuery.AddMustNot(mustNotQueries...)
// must still have a value
notEmptyQuery := bleve.NewWildcardQuery("*")
notEmptyQuery := bleve.NewMatchAllQuery()
boolQuery.AddMust(notEmptyQuery)
return boolQuery, nil

Loading…
Cancel
Save