jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Planamente <MikePlaname...@hotmail.com>
Subject Re: recursive XPath in jackrabbit...
Date Wed, 30 Sep 2009 06:13:15 GMT

thank you Alex,

i'll try this asap,
an other question, isn't it possible to manage this without using index
aggregate, only through xpath?
I ask this question because we will probably migrate to Alfresco(still using
JCR) and we would like to have a "portable" solution...

Michael.



Alexander Klimetschek wrote:
> 
> On Tue, Sep 29, 2009 at 16:58, Michael Planamente
> <MikePlanamente@hotmail.com> wrote:
>> I must retrieve all nodes of a certain type having any children that
>> comply
>> with a contains() clause...
>>
>> example: return all nodes of type nt:BLAH that have child node(s) that
>> contains(.,term)
>> //element(*,nt:BLAH)//*[jcr:contains(.,term)]
>>
>> is it possible?
> 
> Yes.
> 
> If the child node structure below the nt:BLAH nodes is always the
> same, you can also define index aggregates [1] for the full text and
> run the simpler:
> 
> //element(*,nt:BLAH)[jcr:contains(.,term)]
> 
> [1]
> http://wiki.apache.org/jackrabbit/IndexingConfiguration#Index_Aggregates
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 
> 

-- 
View this message in context: http://www.nabble.com/recursive-XPath-in-jackrabbit...-tp25664720p25675528.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message