Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 885F47945 for ; Tue, 4 Oct 2011 09:19:23 +0000 (UTC) Received: (qmail 99650 invoked by uid 500); 4 Oct 2011 09:19:23 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 99591 invoked by uid 500); 4 Oct 2011 09:19:22 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 99563 invoked by uid 99); 4 Oct 2011 09:19:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 09:19:22 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.54.144.131] (HELO thsbbfxrt01p.thalesgroup.com) (192.54.144.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 09:19:15 +0000 Received: from thsbbfxrt01p.thalesgroup.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id A4F2C59A3BF for ; Tue, 4 Oct 2011 11:18:54 +0200 (CEST) From: PROME Christophe To: "dev@chemistry.apache.org" Date: Tue, 4 Oct 2011 11:18:56 +0200 Subject: RE: Size limit on the Query results ? Thread-Topic: Size limit on the Query results ? Thread-Index: AcyB8JFz642m1fu2S/GLM+1cXHCRoQAhZDcA Message-ID: <5843_1317719934_4E8ACF7E_5843_4730_1_8AF751CD48F5A14AADA5E935BB6A406501EBBB59626B@THSONEA01CMS03P.one.grp> References: <18894_1317660582_4E89E7A6_18894_192_1_8AF751CD48F5A14AADA5E935BB6A406501EBBB54326A@THSONEA01CMS03P.one.grp> <4E89EE8D.8060906@alfresco.com> In-Reply-To: <4E89EE8D.8060906@alfresco.com> Accept-Language: fr-FR Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: fr-FR x-pmwin-version: 3.1.0.0, Antivirus-Engine: 3.23.2, Antivirus-Data: 4.69G Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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 getPage(int maxNumItems)" met= hod of the "ItemIterable" interface: =20 ItemIterable results =3D session.query(query.toString(),false)= .getPage(MAX_RESULTS); Instead of : ItemIterable results =3D session.query(query.toString(),false)= ; With MAX_RESULTS sets to 10000, I get all the results. Regards, Christophe -----Message d'origine----- De=A0: Florian M=FCller [mailto:florian.mueller@alfresco.com]=20 Envoy=E9=A0: lundi 3 octobre 2011 19:19 =C0=A0: dev@chemistry.apache.org Cc=A0: PROME Christophe Objet=A0: 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 syst= em.acl.maxPermissionCheckTimeMillis (the maximum time spent pruning results= ) and system.acl.maxPermissionChecks (the maximum number of results to perf= orm permission checks against). - Florian On 03/10/2011 17:50, PROME Christophe wrote: > Hi, >=20 > I am using Open CMIS to query a repository. >=20 > One of my query shall return a lot of results (500+). >=20 > However, the results I get are limited to 100 items. >=20 > Is it an Alfresco or an Open Cmis limitation ? > Can I change this value using a property ? >=20 > Here is my code to query the Alfresco repository : >=20 > ItemIterable results =3D session.query(myQuery,false); >=20 > for (QueryResult result : results) { > // Do something with the results...=09 > } >=20 >=20 > I am using Open CMIS 0.5.0 and Alfresco community 3.4d >=20 > Thanks, >=20 > Christophe >=20