jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rencana Tarigan <rencana_tari...@yahoo.co.id>
Subject Re: Search Query
Date Mon, 21 Jun 2010 15:41:07 GMT
I have path /cana.txt but when i use this query the result is empty..
//element(*, nt:file)[jcr:contains(jcr:path, '//"+searchText+"')]
can somebody tell me what is wrong with this query ?

On 6/21/2010 8:15 PM, Justin Edelson wrote:
> http://wiki.gxdeveloperweb.com/confluence/display/GXDEV/XPath+JCR+Sample+Queries
>
> has some good sample xpath queries.
>
> Justin
>
> On Jun 21, 2010, at 8:24 AM, Rencana Tarigan wrote:
>
>    
>> Hi, can someone give me example for query using xpath or sql in jackrabbit..
>> for example i want get a result that the content contains "text" and path like %text%
so the result will :
>> result1.txt<-- this file contains "text"
>> atext.doc
>> texta.doc
>> atexta.doc
>>
>> Thanks...
>>
>> -- 
>> -----=====*=====-----
>> Rencana Tarigan
>> +6285270567856
>> YM   : rencana_tarigan
>> Skype: rencana.tarigan
>> http://cana.web.id
>>
>>      
>
>
>    

Mime
View raw message