chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin Cornwell <gavin.cornw...@alfresco.com>
Subject Re: getTotalNumItems() returning wrong value
Date Wed, 19 Mar 2014 07:33:14 GMT
Hi Sebastian,

Yes, this was a known issue in Alfresco, according to our JIRA system it was fixed in 4.1.4.

Another thing that can effect the result is the search engine being used, are you using SOLR
or Lucene?

Regards,

Gavin



On 18 Mar 2014, at 16:42, Mark Streit <mcs130@gmail.com> wrote:

> We ran into a similar issue with the method: getTotalNumItems() -  (using
> Alfresco 4.1.7) and I believe this has been reported to them already.  You
> may wish to check with Alfresco.
> 
> Mark Streit
> 
> On Tue, Mar 18, 2014 at 12:37 PM, Sebastian Danninger <
> sebastian.danninger@googlemail.com> wrote:
> 
>> 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
View raw message