jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KÖLL Claus <C.KO...@TIROL.GV.AT>
Subject Strange behaviour between sql and xpath search
Date Wed, 04 Apr 2007 15:28:54 GMT
i have added a text file to my workspace and i would search it by its name with the contains
With the sql search it will be found

SELECT * FROM nt:base WHERE contains(*, '*.txt')

If i try to search with XPath i didnt find it !

//element(*, nt:base)[jcr:contains(*, '*.txt')]

I think the two statements are the same or not ?

With xpath i do only find strings with contains(*) on the jcr:content node !
Is this a bug ??

My node structure looks like:

/test.txt (nt:file)
-my:name (Mixin)
 - .. some Mixin properties
 /jcr:content (nt:resource)

thanks for any help

View raw message