This is an automated email from the ASF dual-hosted git repository.
sarath 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 6d6a281 ATLAS-4219: Basic Search - Search with Glossary term
returning approximate count as -1
6d6a281 is described below
commit 6d6a281160ed837b9559a6d41ac75e319ca51bf7
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 <[email protected]>
(cherry picked from commit bc2c21898805da9e3c749a108b319c18f777ff2b)
---
.../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;
}
}