jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bilobag <bilo...@hotmail.com>
Subject RE: query for child property
Date Tue, 14 Aug 2007 13:58:34 GMT

Yes, I have checked to make sure the values are there.  Query 1 is actually
working fine.  It is Query 2 that is having an issue.  The only difference i
can see is that jcr:content is a property of cwe:file of type nt:resource
and cwe:comment is a child node of cwe:file.  Should that affect anything?

Ard Schrijvers wrote:
> Hello,
>> query 1:
>> //element(*,cwe:file)[jcr:contains(jcr:content/@jcr:mimeType,
>> 'application/msword')]/rep:excerpt() order by @jcr:score desc
> You can try first to debug a little: 
> does //*[jcr:contains(@jcr:mimeType, 'application/msword')] for example
> returns a result? If not, you might know better where to look (do you
> actually have a property mimeType to begin with...you might take a look
> with Luke at your lucene index). Futhermore, 
> //*[@jcr:mimeType='application/msword'] makes IMO more sense (though 99%
> of the time it will return the same result (depending on your analyzer
> used))
> Regards Ard

View this message in context: http://www.nabble.com/query-for-child-property-tf4262707.html#a12145049
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message