You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2019/07/22 23:31:37 UTC

[atlas] branch master updated: ATLAS-3345: AggregationMetrics on quick search is empty

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

sarath 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 c9becac  ATLAS-3345: AggregationMetrics on quick search is empty
c9becac is described below

commit c9becac21d60b0056dbebc4a1335151619be6d81
Author: Sarath Subramanian <sa...@apache.org>
AuthorDate: Mon Jul 22 15:00:00 2019 -0700

    ATLAS-3345: AggregationMetrics on quick search is empty
---
 .../org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java     | 2 ++
 1 file changed, 2 insertions(+)

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 c37b381..cc1546d 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
@@ -400,6 +400,8 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
                     baseInstance.setIndexFieldName(indexFieldName);
                 }
 
+                typeRegistry.addIndexFieldName(attribute.getVertexPropertyName(), indexFieldName);
+
                 LOG.info("Property {} is mapped to index field name {}", attribute.getQualifiedName(), attribute.getIndexFieldName());
             }
         }