jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Moss" <mos...@googlemail.com>
Subject Re: Does search dereference references
Date Thu, 11 Jan 2007 12:15:05 GMT
On 1/11/07, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
>
> David Moss wrote:
> > Is it possible to search a document node's contents, via a reference to
> it.
>
> yes, you simply use the jcr:deref() function:
>
> //element(*, nt:linkedFile)/jcr:deref(@jcr:content, '*')[jcr:contains(.,
> 'foo')]
>
> regards
>   marcel
>


Great, thanks very much.

I guess this will only search nodes that are referenecs.  Is it possible to
search all children of a node (documents _and_ references) with a single
search string?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message