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

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

commit 24fb2b066bcff11a8b667b0f90d43cb482fb0e81
Author: nikhilbonte <[email protected]>
AuthorDate: Wed Nov 6 11:52:13 2019 +0530

    ATLAS-3504:- DSL query with like clause returns unexpected results #1.
    
    Signed-off-by: nixonrodrigues <[email protected]>
---
 .../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 2bd7b94..7c55130 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