diff --git a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java index d551aeb227..b1236c82af 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java @@ -215,7 +215,7 @@ private void personaPolicyToESDslClauses(List policies, for (String asset : assets) { //terms.add(asset); List> mustMap = new ArrayList<>(); - mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/domain/*"))); + mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*domain/*"))); mustMap.add(mapOf("term", mapOf("__typeName.keyword", "DataDomain"))); allowClauseList.add(mapOf("bool", mapOf("must", mustMap))); } @@ -224,7 +224,7 @@ private void personaPolicyToESDslClauses(List policies, for (String asset : assets) { //terms.add(asset); List> mustMap = new ArrayList<>(); - mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*/product/*"))); + mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*product/*"))); mustMap.add(mapOf("term", mapOf("__typeName.keyword", "DataProduct"))); allowClauseList.add(mapOf("bool", mapOf("must", mustMap))); }