You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by hsp_ <pi...@ibest.com.br> on 2007/11/01 21:07:26 UTC
Search doubt
Hi, is there some way to do a search that brings me all the nodes that refers
to a node or some node below it in path? (xpath and sql if possible)
nodes referenceables:
- nodeR1
|_ nodeR2
|_ nodeR3
nodes to search:
- nodeX (prop:x refers to nodeR1)
- nodeY (prop:x refers to nodeR3)
Cheers.
--
View this message in context: http://www.nabble.com/Search-doubt-tf4733751.html#a13536298
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Search doubt
Posted by Marcel Reutegger <ma...@gmx.net>.
hsp_ wrote:
> Hi, is there some way to do a search that brings me all the nodes that refers
> to a node or some node below it in path? (xpath and sql if possible)
>
> nodes referenceables:
> - nodeR1
> |_ nodeR2
> |_ nodeR3
>
> nodes to search:
>
> - nodeX (prop:x refers to nodeR1)
> - nodeY (prop:x refers to nodeR3)
no, this is not possible, but you can simply use the JCR API to get the
properties that e.g. reference NodeR1 or nodeR3:
Node.getReferences()
regards
marcel