jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Why these two queries don't return the same?
Date Fri, 16 Feb 2007 10:40:03 GMT
I think this two queries are "equivalents" because both search in the
node content, but the results are differents:

	//element(*,okm:document)/@jcr:path[jcr:contains(okm:content,'apache')]
order by @jcr:score descending

	//element(*,okm:resource)/@jcr:path[jcr:contains(.,'apache')] order by
@jcr:score descending

This is my node definitions:

[okm:resource] > nt:resource, mix:versionable
- okm:size (long) mandatory
- okm:author (string) mandatory

[okm:document] > nt:hierarchyNode, mix:referenceable, mix:lockable,
mix:accessControlled
- okm:author (string) mandatory
- okm:name (string)
- okm:language (string)
- okm:keywords (string)
- okm:notification (string) multiple
+ okm:content (okm:resource) primary mandatory

-- 
GIT Consultors S.L.
c\ Francesc Rover 2-B
07003 Palma de Mallorca
(Illes Balears)


Mime
View raw message