Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 20610 invoked from network); 8 May 2007 09:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 09:16:46 -0000 Received: (qmail 32197 invoked by uid 500); 8 May 2007 09:16:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 32183 invoked by uid 500); 8 May 2007 09:16:51 -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 32174 invoked by uid 99); 8 May 2007 09:16:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 02:16:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of the.mindstorm.mailinglist@gmail.com designates 64.233.162.224 as permitted sender) Received: from [64.233.162.224] (HELO nz-out-0506.google.com) (64.233.162.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 02:16:42 -0700 Received: by nz-out-0506.google.com with SMTP id s18so2446814nze for ; Tue, 08 May 2007 02:16:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MN0J07GV1MBkcKaH/Q1D8bTUfv2ALZ6SPuLzewJUF/tlruOIJgdBq+ZI8ET33j28rsei9x+FpAq4kmJGvr8Wq1YJLEUF8lnLeUsClBlEUEHVOwylAZq6guF8TY/uR15B5Qj61Jr98pIbK2hUt68/ybi61aIXORm3a854GkwITSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aQIDcWRHbgTUy9CYkXDg3qoBxB/ct5sDC4NZFrLuLbUV5wi04kEq/3h61oi+jYJEgkEr+VsxfQQzXTMHSLhPXKMqzvi1K+IkBWr/tDNmRJQS9TXeiI94bOnvfMNteVpjoULxA0mcz3RRyHhvO7Cey9ZHo+Ki8snCrBoMAgYrrXA= Received: by 10.114.173.15 with SMTP id v15mr2527575wae.1178615780235; Tue, 08 May 2007 02:16:20 -0700 (PDT) Received: by 10.115.60.10 with HTTP; Tue, 8 May 2007 02:16:20 -0700 (PDT) Message-ID: Date: Tue, 8 May 2007 12:16:20 +0300 From: "=?UTF-8?Q?Alexandru_Popescu_=E2=98=80?=" To: users@jackrabbit.apache.org Subject: Re: Is jcr:contains supported only for text/plain type content? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <22502847.4181176923764555.JavaMail.root@mail.rhoderunner.com> <16307183.4201176927094981.JavaMail.root@mail.rhoderunner.com> <90a8d1c00704190139h73a612c6m2c40e550c437fb50@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 5/7/07, Nithya Mani wrote: > Hi, > > I have added an xsd file as binary property value. The node structure I > followed is, > > /Schema (nt:file) > /jcr:content (nt:resource) > -jcr:mimetype (text/xsd) > -jcr:lastModified > -jcr:data (sample.xsd which contains a line > ) > > I tried to make contains search on this file using the following query, > > /jcr:root/Schema//element(*, nt:resource)[jcr:contains(., > '*caseMapKind*')] > > It returns none. If I neglect the contains part > {/jcr:root/Schema//element(*, nt:resource)}, it works fine. The same > query with contains works, if I set mime type as text/plain and > partially works on text/xml type file. Does jcr:contains not supported > for all mime types? Is it applicable only for text/plain? > According to the spec: [quote] Support for the jcr:contains() (CONTAINS() in SQL) function is not required for any property types in particular. It is however required to work at the node level. In that case it applies to those properties of the node for which the implementation maintains an index. Which properties those are is an implementation issue. See 6.6.5.2 jcr:contains Function and 8.5.4.5 CONTAINS. [/quote] So, most probably in your case you haven't configured any other text indexers so that the content of your xsd is indexed. ./alex -- .w( the_mindstorm )p. _____________________________________ Alexandru Popescu, OSS Evangelist TestNG/Groovy/AspectJ/WebWork/more... Information Queue ~ www.InfoQ.com > Thanks, > > Nithya Mani > Senior Developer > > webMethods > Mobile: 9841825337 > Email: nithya@webmethods.com > IM: nithya_infravio (Yahoo) >