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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user