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
jackrabbit.
thoughts?
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...
regards
marcel