Hi Florian,

Thanks for your answer.
However the limitations in my Alfresco configuration are above the expected 
result count.

I fixed this issue using the "ItemIterable<T> getPage(int maxNumItems)" method 
of the "ItemIterable<T>" interface:  

ItemIterable<QueryResult> results = 
session.query(query.toString(),false).getPage(MAX_RESULTS);

Instead of :

ItemIterable<QueryResult> results = session.query(query.toString(),false);

With MAX_RESULTS sets to 10000, I get all the results.

Regards,

Christophe

-----Message d'origine-----
De : Florian Müller [mailto:[email protected]] 
Envoyé : lundi 3 octobre 2011 19:19
À : [email protected]
Cc : PROME Christophe
Objet : Re: Size limit on the Query results ?

Hi Christophe,

OpenCMIS does not limit the number of query results.
On the Alfresco side you might want to check the repository properties 
system.acl.maxPermissionCheckTimeMillis (the maximum time spent pruning 
results) and system.acl.maxPermissionChecks (the maximum number of results to 
perform permission checks against).


- Florian



On 03/10/2011 17:50, PROME Christophe wrote:
> Hi,
> 
> I am using Open CMIS to query a repository.
> 
> One of my query shall return a lot of results (500+).
> 
> However, the results I get are limited to 100 items.
> 
> Is it an Alfresco or an Open Cmis limitation ?
> Can I change this value using a property ?
> 
> Here is my code to query the Alfresco repository :
> 
> ItemIterable<QueryResult> results = session.query(myQuery,false);
> 
> for (QueryResult result : results) {
>       // Do something with the results...     
> }
> 
> 
> I am using Open CMIS 0.5.0 and Alfresco community 3.4d
> 
> Thanks,
> 
> Christophe
> 

Reply via email to