Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 87809 invoked from network); 18 Aug 2005 04:17:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 04:17:51 -0000 Received: (qmail 40074 invoked by uid 500); 18 Aug 2005 04:17:50 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 40061 invoked by uid 99); 18 Aug 2005 04:17:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 21:17:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bcm@osafoundation.org designates 204.152.186.98 as permitted sender) Received: from [204.152.186.98] (HELO smtp.osafoundation.org) (204.152.186.98) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 21:18:09 -0700 Received: from localhost (localhost [127.0.0.1]) by smtp.osafoundation.org (Postfix) with ESMTP id 7E39414229F for ; Wed, 17 Aug 2005 21:17:48 -0700 (PDT) Received: from smtp.osafoundation.org ([127.0.0.1]) by localhost (laweleka.osafoundation.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16841-03 for ; Wed, 17 Aug 2005 21:17:48 -0700 (PDT) Received: from [10.0.1.5] (c-67-188-209-63.hsd1.ca.comcast.net [67.188.209.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.osafoundation.org (Postfix) with ESMTP id ECA2A142287 for ; Wed, 17 Aug 2005 21:17:47 -0700 (PDT) Message-ID: <43040BEA.6050600@osafoundation.org> Date: Wed, 17 Aug 2005 21:17:46 -0700 From: Brian Moseley User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: query problem References: <43040346.9050201@osafoundation.org> In-Reply-To: <43040346.9050201@osafoundation.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new and clamav at osafoundation.org X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N well, i updated to the latest code, including the recent search changes, and things are even worse: the query seems to hang indefinitely, never returning. for what's it worth, this query works as expected: //element(*, caldav:resource)[@caldav:uid = '1'] Brian Moseley wrote: > > is there anything wrong with the formulation of this xpath query statement? > > /bcm/cal//element(*, caldav:resource)[@caldav:uid = > '59BC120D-E909-4A56-A70D-8E97914E51A3'] > > i'm trying to find all nodes of type "caldav:resource" underneath (but > not including) /bcm/cal where the "caldav:uid" property is the value > given in the query. > > when i execute the query, i get the below exception. looks like i'm not > being successful in specifying a descendents-only query, but i can't > imagine that's what's causing the exception... > > thanks! > > java.lang.UnsupportedOperationException > at > org.apache.jackrabbit.core.query.lucene.CachingMultiReader$MultiTermDocs.skipTo(CachingMultiReader.java:281) > > at org.apache.lucene.search.TermScorer.skipTo(TermScorer.java:88) > at > org.apache.lucene.search.ConjunctionScorer.doNext(ConjunctionScorer.java:53) > > at > org.apache.lucene.search.ConjunctionScorer.next(ConjunctionScorer.java:48) > at org.apache.lucene.search.Scorer.score(Scorer.java:37) > at > org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.calculateChildren(ChildAxisQuery.java:291) > > at > org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.next(ChildAxisQuery.java:251) > > at org.apache.lucene.search.Scorer.score(Scorer.java:37) > at > org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.calculateSubHits(DescendantSelfAxisQuery.java:302) > > at > org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.next(DescendantSelfAxisQuery.java:237) > > at org.apache.lucene.search.Scorer.score(Scorer.java:37) > at > org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:92) > at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64) > at org.apache.lucene.search.Hits.(Hits.java:43) > at org.apache.lucene.search.Searcher.search(Searcher.java:33) > at org.apache.lucene.search.Searcher.search(Searcher.java:27) > at > org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:287) > > at > org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:179) > > at > org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:132) > >