Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D3F78D46 for ; Thu, 15 Sep 2011 12:53:02 +0000 (UTC) Received: (qmail 35444 invoked by uid 500); 15 Sep 2011 12:53:02 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 35405 invoked by uid 500); 15 Sep 2011 12:53:02 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 35397 invoked by uid 99); 15 Sep 2011 12:53:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 12:53:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.23.55.28] (HELO mail.ginestie.com) (62.23.55.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 12:52:54 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Q : how to make repository content statistics Date: Thu, 15 Sep 2011 14:52:32 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Q : how to make repository content statistics Thread-Index: AcxzploMMUd5W/dDQxyviQR3+p1VeQ== From: =?iso-8859-1?Q?B=E9nigot_Yves?= To: X-Virus-Checked: Checked by ClamAV on apache.org We use jackrabbit 2.0 inside a web application to store documents How can we program statistics such as : - the total number of documents - compute the number of documents per property values for a given = property - compute a two dimensional table of the number of documents per = property=20 values for a given property couple ? The properties would be dynamically selected by the user at runtime = among a list of defined properties Scanning the entire repository is possible but obviously slow. Is there a better way to do this through the API, or to extend = JackRabbit to do just this ? Yves