Hi, On Fri, Oct 9, 2009 at 09:55, Alexander Klimetschek <[email protected]> wrote: > On Mon, Oct 5, 2009 at 21:41, Nicolas Brasseur > <[email protected]> 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
