diff --git a/plugin-solr/src/main/java/org/apache/ranger/authorization/solr/authorizer/RangerSolrAuthorizer.java b/plugin-solr/src/main/java/org/apache/ranger/authorization/solr/authorizer/RangerSolrAuthorizer.java index 7d91ba4de5..40bc453ff6 100644 --- a/plugin-solr/src/main/java/org/apache/ranger/authorization/solr/authorizer/RangerSolrAuthorizer.java +++ b/plugin-solr/src/main/java/org/apache/ranger/authorization/solr/authorizer/RangerSolrAuthorizer.java @@ -708,7 +708,7 @@ private String getDisjunctiveFilterQueryStr(Set roles) { if (roles != null && !roles.isEmpty()) { StringBuilder builder = new StringBuilder(); for (String role : roles) { - addDisjunctiveRawClause(builder, role); + addDisjunctiveRawClause(builder, "\"" + role + "\""); } if (allRolesToken != null && !allRolesToken.isEmpty()) { addDisjunctiveRawClause(builder, allRolesToken);