Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 91946 invoked from network); 2 Feb 2007 12:18:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 12:18:04 -0000 Received: (qmail 64381 invoked by uid 500); 2 Feb 2007 12:18:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 64370 invoked by uid 500); 2 Feb 2007 12:18:09 -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 64361 invoked by uid 99); 2 Feb 2007 12:18:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 04:18:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [81.19.98.105] (HELO eul0600087.eu.verio.net) (81.19.98.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 04:17:59 -0800 Received: from [192.168.1.3] (105.106.219.87.dynamic.jazztel.es [87.219.106.105] (may be forged)) (authenticated bits=0) by eul0600087.eu.verio.net (8.12.11.20060308/8.12.11) with ESMTP id l12CHY1m013162 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 2 Feb 2007 13:17:37 +0100 Subject: searchin across a node hierarchy From: Paco Avila To: users@jackrabbit.apache.org Content-Type: text/plain Date: Fri, 02 Feb 2007 13:17:33 +0100 Message-Id: <1170418653.11834.0.camel@antares> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [okm:resource] > nt:resource, mix:versionable - okm:size (long) mandatory - okm:author (string) mandatory [okm:document] > nt:hierarchyNode, mix:referenceable, mix:lockable, mix:accessControlled - okm:author (string) mandatory - okm:name (string) - okm:language (string) - okm:keywords (string) - okm:notification (string) multiple + okm:content (okm:resource) primary mandatory + okm:properties (nt:unstructured) In the okm:properties there are several document properties. Each document can have different properties. Can I make a complex search where mix okm:document properties, okm:resource properties and okm:properties? Something like: //element(*, okm:document)[jcr:like(@okm:name, '%txt') and (@okm:resource/okm:size > 1)] -- GIT Consultors S.L. c\ Francesc Rover 2-B 07003 Palma de Mallorca (Illes Balears)