On 5/7/07, Nithya Mani <[EMAIL PROTECTED]> 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
<xsd:simpleType name="uddiKey" scc14n:caseMapKind="fold">)

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: [EMAIL PROTECTED]
IM: nithya_infravio (Yahoo)

Reply via email to