Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 26934 invoked from network); 28 Sep 2006 23:28:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 23:28:03 -0000 Received: (qmail 38604 invoked by uid 500); 28 Sep 2006 23:28:02 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 38378 invoked by uid 500); 28 Sep 2006 23:28:01 -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 38369 invoked by uid 99); 28 Sep 2006 23:28:01 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 16:28:01 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=jukka.zitting@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.234] ([66.249.82.234:41835] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 41/36-00212-D7A5C154 for ; Thu, 28 Sep 2006 16:27:59 -0700 Received: by wx-out-0506.google.com with SMTP id t13so772485wxc for ; Thu, 28 Sep 2006 16:27:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Cn1zNJpK3YAeVBLj57aaQ7+ibkomLGvy1/fc696tlJ7rLj4REIiSNoImldZCcrqZhlEd5jYk+itMmHi8dL/FDT9/HVJUwxwpZ6tZ1s+fawN5qIH01ig+KBrOvPv20e9HQTjamEnhhVa42yo2HqZUjXa5Yl9jz3lYv0F6zfAGuFE= Received: by 10.90.105.20 with SMTP id d20mr1127990agc; Thu, 28 Sep 2006 16:27:53 -0700 (PDT) Received: by 10.90.97.2 with HTTP; Thu, 28 Sep 2006 16:27:53 -0700 (PDT) Message-ID: <510143ac0609281627t705280dfn1fe67fbcc600a852@mail.gmail.com> Date: Fri, 29 Sep 2006 02:27:53 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: queries on nodes of type nt:file In-Reply-To: <451C0D47.6040804@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <451C0D47.6040804@gmx.de> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 9/28/06, Julian Reschke wrote: > I'm trying to understand how to express a query on a node of type > nt:file, putting an attribute constraint on the node itself, and doing > text search on the jcr:content child node. That's unsupported in Jackrabbit (see JCR-247) as well as being unspecified by JSR 170. :-( The current best practice (as discussed with David) to avoid this is to place all metadata and other extra properties on the nt:resource node instead of the nt:file node. Your search queries should then target the nt:resource node instead of the parent nt:file. BR, Jukka Zitting -- Yukatan - http://yukatan.fi/ - info@yukatan.fi Software craftsmanship, JCR consulting, and Java development