Thanks for the feedback.  I tried using my suggestion and it seems to work
fine for now.  I can't wait for 1.4 to be released so I can use the new
features...should make searching much better.


Christoph Kiehl-3 wrote:
> 
> bilobag wrote:
>> Thanks for taking the time to test my query.  In
>> jcr:contains(cwe:comment/@cwe:body,'banana'), I was under the impression
>> that cwe:comment was the nodeType that I wanted to search and not the
>> name
>> of the specific child node.  My cwe:comment nodes may all be named
>> different.  Is there a way to query the cwe:body property of any child
>> nodes
>> of nodeType cwe:comment?  If not, is there a syntax I can use to search
>> all
>> child nodes like jcr:contains(*/@cwe:body,'banana')?  Also, does anyone
>> know
>> when jackrabbit 1.4 will be released.  Thanks.
> 
> Well, the query would probably look like this:
> 
> //element(*,cwe:file)[jcr:contains([EMAIL PROTECTED]:primaryType = 
> 'cwe:comment']/@cwe:body, 'banana')]/rep:excerpt() order by @jcr:score
> desc
> 
> But I'm not sure if this is supported. But you can use
> 
> //element(*,cwe:file)[jcr:contains(*/@cwe:body, 'banana')]/rep:excerpt()
> order 
> by @jcr:score desc
> 
> as you suggested.
> 
> Cheers,
> Christoph
> 
> 
> 

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

Reply via email to