From users-return-12963-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Oct 09 07:53:51 2009 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 77285 invoked from network); 9 Oct 2009 07:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 07:53:51 -0000 Received: (qmail 91504 invoked by uid 500); 9 Oct 2009 07:53:50 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 91458 invoked by uid 500); 9 Oct 2009 07:53:50 -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 91447 invoked by uid 99); 9 Oct 2009 07:53:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 07:53:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Oct 2009 07:53:39 +0000 Received: from source ([209.85.222.204]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSs7r7gIt2CL76UQCzQbmx/uEYjj35h2q@postini.com; Fri, 09 Oct 2009 07:53:19 UTC Received: by pzk42 with SMTP id 42so5389830pzk.31 for ; Fri, 09 Oct 2009 00:53:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.194.7 with SMTP id r7mr237232rvf.68.1255074798043; Fri, 09 Oct 2009 00:53:18 -0700 (PDT) In-Reply-To: <0573A4E387614A50B84C04070ACBC695@Dell2> References: <0573A4E387614A50B84C04070ACBC695@Dell2> Date: Fri, 9 Oct 2009 09:53:18 +0200 Message-ID: Subject: Re: Custom node or mixin added to existing node From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Oct 8, 2009 at 23:05, Michael Shoener wrote: > In our application we want to allow users to create custom named tag/value > pairs that will get stored with the document in the repository as > properties. Use nt:unstructured or have a custom node type / mixin with residual property definitions (* - the heart of unstructuredness). > I have tried using a mixin but when searching I have to search on my mixin > type not the nt:resource (which contains the binary data) because the > nt:resource does not contain my custom property values and they don't get > returned with the query. But when I do that I can't query the binary content > of the node because my query is searching against my custom mixin type I > created. I don't understand? Why can't you search for the mixin + a jcr:contains fulltext search? > Do I need to define a custom node type that extends nt:resource and allow > arbitrary property value (if this is even possible). Of course it is! See here http://jackrabbit.apache.org/node-types.html Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com