jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: queries on nodes of type nt:file
Date Thu, 28 Sep 2006 23:27:53 GMT
Hi,

On 9/28/06, Julian Reschke <julian.reschke@gmx.de> wrote:
> I'm trying to understand how to express a query on a node of type
> nt:file, putting an attribute constraint on the node itself, and doing
> text search on the jcr:content child node.

That's unsupported in Jackrabbit (see JCR-247) as well as being
unspecified by JSR 170. :-(

The current best practice (as discussed with David) to avoid this is
to place all metadata and other extra properties on the nt:resource
node instead of the nt:file node. Your search queries should then
target the nt:resource node instead of the parent nt:file.

BR,

Jukka Zitting

-- 
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development

Mime
View raw message