jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject Re: Full text search/queries
Date Wed, 28 Nov 2007 14:06:41 GMT
Marcel Reutegger wrote:

> Michael Wechner wrote:
>
>> Query q = qm.createQuery("//jcr:content[jcr:contains(@jcr:data, 
>> 'Hello')]", Query.XPATH);
>>
>> then I don't receive any nodes, whereas I am very sure there are 
>> nodes containing the word "Hello" and also the index, because when 
>> doing a grep I do receive
>
>
> the binary property jcr:data is indexed but is only available on the 
> node level index. see spec section 6.6.5.2.


ok, thanks for the pointer

> jcr:contains on a property is supported in jackrabbit but only on 
> string properties.
>
> the following query will work:
>
> //jcr:content[jcr:contains(., 'hello')]
>
> or alternatively:
>
> //*[jcr:contains(jcr:content, 'hello')]


that works indeed. Thanks very much.

I think now I am ready to create a Wiki page ;-)

Cheers

Michael

>
>
> regards
>  marcel



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner@wyona.com, michi@apache.org
+41 44 272 91 61


Mime
View raw message