jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: jcr:contains question
Date Wed, 25 Nov 2009 11:49:05 GMT
2009/11/24 Fran├žois Cassistat <f@maya-systems.com>:
> I would like to do something like :
> //*[@prop='exactvalue' and jcr:contains(.//*, 'keyword')]
> where jcr:contains search for all sub-properties. I've tried some alternatives that does
not work too :
> //*[@prop='exactvalue' and jcr:contains(*, 'keyword')]
> //*[@prop='exactvalue' and jcr:contains(.//, 'keyword')]
> //*[@prop='exactvalue' and .//*[jcr:contains(., 'keyword')]]
> but it don't seems to work (it is not asked in JSR-170 standard...). Are there any workaround?

You can only use explicit paths in jcr:contains, eg. "." or a property
"@foobar" or a subnnode "sub/node" or a subproperty "sub/@property".

However, you can configure the indexing in Jackrabbit to aggregate the
fulltext index on a node level for certain nodetypes:


Alexander Klimetschek

View raw message