jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: [jira] Resolved: (JCR-198) jcr:contains doesn't return incomplete match
Date Fri, 26 Aug 2005 10:30:10 GMT
Bertrand LEGA wrote:
> The following query doesn't work :
> //*[jcr:contains(., '*bi*')]
> Why is it so ?

This is currently not supported because it requires a complete index 
scan, which can be quite expensive.

If there is a wider need for this kind of query we can implement this in 


> Basically, my need is to do the following search :
>   - search for a string anywhere in a property. For example, with the 
> contents above, searching for 'N' should return both nodes.
>   - case insensitive
> So jcr:like(%title, "%N%") do the job but is case sensitive. And 
> jcr:contains(%title, "*N*") is not possible.
> I'm stuck here.
> Do you have an idea ?

well, I'm afraid, this is currently not possible...


View raw message