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

madhan pushed a commit to branch atlas-2.5
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/atlas-2.5 by this push:
     new 9df73c6cf ATLAS-5147: Search API approximateCount shows pageLimit 
value instead of total entity count (#463)
9df73c6cf is described below

commit 9df73c6cfedacfb86a1466255919c4884e046265
Author: Aditya Gupta <[email protected]>
AuthorDate: Thu Oct 2 01:55:05 2025 +0530

    ATLAS-5147: Search API approximateCount shows pageLimit value instead of 
total entity count (#463)
    
    (cherry picked from commit 2bfc7351174b30b97e2d4ef5e7396a34dc70ae62)
---
 .../org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
 
b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
index aa3a5dc7f..f1f6b18ac 100644
--- 
a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
+++ 
b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
@@ -77,7 +77,7 @@ public class AtlasJanusIndexQuery implements 
AtlasIndexQuery<AtlasJanusVertex, A
 
     @Override
     public Long vertexTotals() {
-        return query.vertexTotals();
+        return query.offset(0).limit(Integer.MAX_VALUE).vertexTotals();
     }
 
     @Override

Reply via email to