jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: How to implement LIKE statements with Xpath?
Date Wed, 01 Apr 2009 12:13:55 GMT
On Tue, Mar 31, 2009 at 16:01, Kurz Wolfgang <wolfgang.kurz@gwvs.de> wrote:
> I want the result to return everything that has test in it like test1, test2, test3
> I thought contains would do that but apparently it doesn’t:-)

if you want contains() to match prefixes you need to tell it to do so
by using a wildcard:

contains(., "test*")


View raw message