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 bc2c218 ATLAS-4219: Basic Search - Search with Glossary term returning approximate count as -1 bc2c218 is described below commit bc2c21898805da9e3c749a108b319c18f777ff2b Author: Pinal <pinal-shah> AuthorDate: Sun Mar 21 21:48:04 2021 +0530 ATLAS-4219: Basic Search - Search with Glossary term returning approximate count as -1 Signed-off-by: Sarath Subramanian <sar...@apache.org> --- .../src/main/java/org/apache/atlas/discovery/TermSearchProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/discovery/TermSearchProcessor.java b/repository/src/main/java/org/apache/atlas/discovery/TermSearchProcessor.java index d9db9bf..45a8158 100644 --- a/repository/src/main/java/org/apache/atlas/discovery/TermSearchProcessor.java +++ b/repository/src/main/java/org/apache/atlas/discovery/TermSearchProcessor.java @@ -114,6 +114,6 @@ public class TermSearchProcessor extends SearchProcessor { @Override public long getResultCount() { - return -1; + return assignedEntities != null ? assignedEntities.size() : -1; } }