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 6FAEA90AF for ; Thu, 19 Jan 2012 17:29:22 +0000 (UTC) Received: (qmail 16828 invoked by uid 500); 19 Jan 2012 17:29:21 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 16770 invoked by uid 500); 19 Jan 2012 17:29:21 -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 16762 invoked by uid 99); 19 Jan 2012 17:29:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 17:29:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [188.40.37.16] (HELO hq1.backendmedia.com) (188.40.37.16) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 17:29:15 +0000 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id DCF3A2E3004E for ; Thu, 19 Jan 2012 17:28:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6BaY5ctuSJMf for ; Thu, 19 Jan 2012 18:28:50 +0100 (CET) Received: from [192.168.0.177] (77-58-147-243.dclient.hispeed.ch [77.58.147.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id 804D02E30044 for ; Thu, 19 Jan 2012 18:28:50 +0100 (CET) From: Lukas Kahwe Smith Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: getting total number of results from a query Date: Thu, 19 Jan 2012 18:28:52 +0100 Message-Id: <671AD03C-E2D0-4EDB-9969-500DBAEF2D33@pooteeweet.org> To: users@jackrabbit.apache.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Hi, I havent found a way to get the total number of results (via davex). = Afaik via Lucene it should be trivial to provide this number (even when = using limit/offset), but from what I see there is only a getSize() on = the iterator which is limited to the rows that were requested. However = in a web app its often quite useful to be able to know the full count of = the result set (though the number doesnt necessarily need to be 100% = accurate). regards, Lukas Kahwe Smith mls@pooteeweet.org