jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Cassistat...@maya-systems.com>
Subject Re: jcr:contains question
Date Wed, 25 Nov 2009 15:24:22 GMT
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 <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:
> http://wiki.apache.org/jackrabbit/IndexingConfiguration
>
> Regards,
> Alex
>
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com


Mime
View raw message