jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis van der Laan <d.g.van.der.l...@rug.nl>
Subject Re: How to implement LIKE statements with Xpath?
Date Tue, 31 Mar 2009 15:02:37 GMT
Hi Kurz,

This should work using jcr:like instead of jcr:contains. So using 
jcr:like(., "test%") should return everything starting with 'test'.

Best regards,
> Hello everyone,
> i am implementing a full textual search with xpath.
> So far I have been using contains(.,"SearchString") but it doesn’t really get me the
right results.
> What I would like to have is a LIKE statement like in SQL
> So for example if I am searching for "test"
> 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:-)
> Anyone have an idea for me how I could get this to work?
> Thx a lot in advance!
> Wolfgang

Dennis van der Laan

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message