Hello again,

Christoph Kiehl wrote:
Markus Fritz wrote:

have anybody get a XPath search working with a relational query on
<any property> ("@*"), for example:

    //users/*/*/*/[EMAIL PROTECTED]'Michael']

or

    //users/*/*/*/masterdata[jcr:contains(@*,'Michael')]

I am new to XPath/jackrabbit, but the above query seems correct to me.

Try the following:

//users/*/*/*/masterdata[jcr:contains(.,'Michael')]

This should do what you are looking for.

Thanks, that does it.
I thought/think '.' should be synonynous to '@*, at least in jackrabbit.


But it still does just a exact match;
Any tips for searching with wildcards?
like:

    //users/*/*/*/masterdata[jcr:like(@*,'Mich%')]


I already have tried

    //users/*/*/*/masterdata[jcr:contains(.,'Mich')]
    //users/*/*/*/masterdata[jcr:contains(.,'Mich%')]
    //users/*/*/*/masterdata[jcr:like(.,'Mich%')]
    //users/*/*/*/masterdata[jcr:like(@*,'Mich%')]

but nothing helps, no results ...


Thanks,
    Markus

--
Dipl.-Ing. (FH) Markus Fritz             [EMAIL PROTECTED]
Just Innovative Software GmbH * Robert-Bosch-Str. 32 * 74081 Heilbronn
Tel.: +49 (0)71 31 89 87 8-0             Fax: +49 (0)71 31) 89 87 8-79
----------------------------------------------------------------------
Registergericht: Amtsgericht Stuttgart, HRB 108601

Geschaeftsfuehrer:
Monika Buchmann

Reply via email to