jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Gough <bagel10002...@googlemail.com>
Subject Re: Search Query
Date Wed, 30 Jun 2010 11:43:00 GMT
Hi Rencana,

Try

//element(*, nt:file)[jcr:contains(jcr:
>
> path, '//"searchText"')]
>

or failing that:

//element(*, nt:file)[jcr:like(jcr:
>
> path, '//"*searchText*"')]
>

regards

Dave



On Mon, Jun 21, 2010 at 4:41 PM, Rencana Tarigan <
rencana_tarigan@yahoo.co.id> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message