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: jcr:like ignore case
Date Fri, 09 Oct 2009 09:45:49 GMT
Hi,

On Fri, Oct 9, 2009 at 09:55, Alexander Klimetschek <aklimets@day.com> wrote:
> On Mon, Oct 5, 2009 at 21:41, Nicolas Brasseur
> <nicolasbrasseur@yahoo.com> wrote:
>> I am currently testing the jcr:like function in xpath queries, I was wondering if
it was possible to change the jcr:like behavior to ignore case or not ?
>
> AFAIK jcr:like is meant for exact matches (+ % wildcards) and hence
> does not ignore the case. For fuzzy fulltext searches, use
> jcr:contains, it should ignore the case.

right, and it is generally faster than jcr:like.

if you really want to use jcr:like case insensitive you can do:

//element(*, my:type)[jcr:like(fn:lower-case(@foo), 'bar%')]

regards
 marcel

Mime
View raw message