jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: AW: Multiple jcr:deref in query
Date Wed, 22 Aug 2007 13:00:58 GMT
Michael Korat wrote:
>> does //*[jcr:contains(.,'some value')] return any result?
> 
> Yes, this query returns the nodes just fine. There might be a problem
> with using multiple jcr:deref and a predicate in the same query, if the
> last element before the predicate is a jcr:deref.
> 
> Here are some simplified querys, so you get an idea of what worked and
> what didn't:
> 
> Empty result:
> //jcr:deref()//jcr:deref()[jcr:contains(.,'someValue')]
> //jcr:deref()//jdcr:deref()[@prop='someValue']
> 
> Right result:
> //jcr:deref()[jcr:contains(.,'someValue')]
> //jcr:deref()//jcr:deref()/element(*,
> nt:base)[jcr:contains(.,'someValue'] 
> 
> By the way, the jackrabbit version I use is 1.3.1.

thanks for the info. this looks like a bug in jackrabbit. can you please create 
a jira issue? thanks

regards
  marcel

Mime
View raw message