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

nixon 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 ecd144d  ATLAS-3504:- DSL query with like clause returns unexpected 
results #1.
ecd144d is described below

commit ecd144d3703e127f48f1d5a1059a5643b6176d02
Author: nikhilbonte <nikhil.bo...@freestoneinfotech.com>
AuthorDate: Wed Nov 6 11:52:13 2019 +0530

    ATLAS-3504:- DSL query with like clause returns unexpected results #1.
    
    Signed-off-by: nixonrodrigues <ni...@apache.org>
    (cherry picked from commit 24fb2b066bcff11a8b667b0f90d43cb482fb0e81)
---
 .../org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
 
b/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
index 7abf761..f96e6a6 100755
--- 
a/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
@@ -721,7 +721,7 @@ public class GraphBackedSearchIndexer implements 
SearchIndexer, ActiveStateChang
                 }
             }
 
-            if(indexFieldName == null) {
+            if(indexFieldName == null && isIndexApplicable(propertyClass, 
cardinality)) {
                 indexFieldName = management.getIndexFieldName(VERTEX_INDEX, 
propertyKey, isStringField);
             }
 

Reply via email to