Cool. I will give it a try.
Thanks !
Frank
Le 09-11-25 à 06:49, Alexander Klimetschek a écrit :
2009/11/24 François Cassistat <[email protected]>:
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:
http://wiki.apache.org/jackrabbit/IndexingConfiguration
Regards,
Alex
--
Alexander Klimetschek
[email protected]