Jukka Zitting schrieb:
Hi,

On 9/28/06, Julian Reschke <[EMAIL PROTECTED]> 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.

Hi Jukka,

this probably works, but I'm a bit worried of making a change like this. Isn't the whole appeal of the nt:resource/nt:file scheme proposed by JSR-170 that many implementations will share this model, and thus will be interoperable to some degree?

Of course I could workaround this by exposing the properties on *both* nodes, but somehow that doesn't feel like a very good idea either...
:-)

Best regards, Julian

Reply via email to