From users-return-15045-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Apr 14 10:41:18 2010 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 32034 invoked from network); 14 Apr 2010 10:41:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 10:41:18 -0000 Received: (qmail 16381 invoked by uid 500); 14 Apr 2010 10:41:17 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 16311 invoked by uid 500); 14 Apr 2010 10:41:17 -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 16295 invoked by uid 99); 14 Apr 2010 10:41:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 10:41:16 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of gadbury@googlemail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 10:41:09 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O201Y-0000TV-W1 for users@jackrabbit.apache.org; Wed, 14 Apr 2010 03:40:48 -0700 Date: Wed, 14 Apr 2010 02:40:48 -0800 (PST) From: Gadbury To: users@jackrabbit.apache.org Message-ID: <1271241648976-1839593.post@n4.nabble.com> In-Reply-To: References: <1271232828988-1839436.post@n4.nabble.com> <1271235488423-1839484.post@n4.nabble.com> Subject: Re: NodeIterator.getSize() returns -1 for query with order by clause MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Jacco. The most relevant post to me was from Guo Du: "Not always working on 2.0-alpha12 (when has where condition) :( WORKING: select * from [nt:base] order by title .size() RETURN 1330 NOT WORKING: select * from [nt:base] where title like 'a%' order by title .size() RETURN -1 (there are 2 records) " But no real answer as to why with a where clause the getSize() returns -1. -- View this message in context: http://n4.nabble.com/NodeIterator-getSize-returns-1-for-query-with-order-by-clause-tp1839436p1839593.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.