chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Danninger <sebastian.dannin...@googlemail.com>
Subject getTotalNumItems() returning wrong value
Date Tue, 18 Mar 2014 16:37:50 GMT
Dear all,

performing the following Code:

OperationContext oc = s.createOperationContext();
oc.setMaxItemsPerPage(size);
ItemIterable<QueryResult> results = s.query("SELECT cmis:objectId FROM
cmis:folder WHERE cmis:createdBy="admin" ORDER BY cmis:createdBy ASC",
false, oc);
System.out.println("Total: " + results.getTotalNumItems());

this always prints the same value as size (pagesize - 5) but should
actually give the number of total query results (300+).

Is this a general bug or somehow related to my repository (Alfresco)

thanks

Sebastian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message