This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ed641a  ATLAS-3746: search for _NOT_CLASSIFIED, without typeName 
doesn't fetch right results
8ed641a is described below

commit 8ed641a785d42ea4d7fa2872486a6bac08b473a3
Author: Pinal Shah <[email protected]>
AuthorDate: Tue Apr 21 16:28:20 2020 +0530

    ATLAS-3746: search for _NOT_CLASSIFIED, without typeName doesn't fetch 
right results
    
    Signed-off-by: Madhan Neethiraj <[email protected]>
---
 .../main/java/org/apache/atlas/discovery/GraphIndexQueryBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/discovery/GraphIndexQueryBuilder.java
 
b/repository/src/main/java/org/apache/atlas/discovery/GraphIndexQueryBuilder.java
index 3f58acb..28d2086 100644
--- 
a/repository/src/main/java/org/apache/atlas/discovery/GraphIndexQueryBuilder.java
+++ 
b/repository/src/main/java/org/apache/atlas/discovery/GraphIndexQueryBuilder.java
@@ -77,7 +77,7 @@ public class GraphIndexQueryBuilder {
                 if (indexQuery.length() != 0) {
                     indexQuery.append(" AND ");
                 }
-                
indexQuery.append("(").append("-").append(INDEX_SEARCH_PREFIX).append("\"").append(CLASSIFICATION_NAMES_KEY)
+                indexQuery.append("( *:* 
").append("-").append(INDEX_SEARCH_PREFIX).append("\"").append(CLASSIFICATION_NAMES_KEY)
                     .append("\"").append(":" + "[* TO *]").append(" AND 
").append("-")
                     
.append(INDEX_SEARCH_PREFIX).append("\"").append(PROPAGATED_CLASSIFICATION_NAMES_KEY)
                     .append("\"").append(":" + "[* TO *]").append(")");

Reply via email to