jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julio Castillo" <jcasti...@edgenuity.com>
Subject RE: Simple Xpath query -Looking for a file(node) by name
Date Sat, 06 Sep 2008 20:50:32 GMT
Let me see if I understand you, are you saying that I need to embed some
code into Jackrabbit so that I can process such queries?

I was hoping that there would be some support with the current XPath syntax
to issue such query.

** julio

-----Original Message-----
From: Marcel Reutegger [mailto:marcel.reutegger@gmx.net] 
Sent: Friday, September 05, 2008 5:54 AM
To: users@jackrabbit.apache.org
Subject: Re: Simple Xpath query -Looking for a file(node) by name


as mentioned in [1], you need to create a JQOM which allows you to do like
matches on the local name of a node. see the link that points to a test
class for sample code.


[1] http://markmail.org/message/2ppoe5fxldd7abaw

Julio Castillo wrote:
> Alex,
> Thanks for the lead. This type of query works for exact file name matches.
> It doesn't work (as stated in that posting for wild card cases)
> //*[fn:name()='foo.txt']
> Any ideas on how to do a like or wild card search on file names?
> Thanks
> ** julio
> -----Original Message-----
> From: Alexander Klimetschek [mailto:aklimets@day.com]
> Sent: Thursday, September 04, 2008 9:17 AM
> To: users@jackrabbit.apache.org
> Subject: Re: Simple Xpath query -Looking for a file(node) by name
> Maybe you could post the query that you tried?
> But I guess this mail has your solution:
> http://markmail.org/message/2ppoe5fxldd7abaw
> Regards,
> Alex
> On Thu, Sep 4, 2008 at 7:17 AM, Julio Castillo 
> <jcastillo@edgenuity.com>
> wrote:
>> I have successfully put together a Query Builder using the latest 
>> released version of Jackrabbit accessed remotely via the SPI layer.
>> I have no problem searching for content whether inside the file or 
>> appended to the file via properties.
>> I'm however stuck with a simple query (syntax probably). I looked at 
>> the Users' list and didn't find anything here.
>> Problem: I want to find nodes strictly using the file names (node 
>> names I
>> suppose) among all the files (nodes) stored in the repository.
>> Thanks on any clues you can provide
>> Julio
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com

View raw message