You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2020/04/21 18:15:04 UTC

[atlas] branch branch-2.0 updated: ATLAS-3746: search for _NOT_CLASSIFIED, without typeName doesn't fetch right results

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

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


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

commit 887251e22ac5723c48a1eb07cbd8166bab37cd8b
Author: Pinal Shah <pi...@freestoneinfotech.com>
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 <ma...@apache.org>
    (cherry picked from commit 8ed641a785d42ea4d7fa2872486a6bac08b473a3)
---
 .../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(")");