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 Thu, 04 Sep 2008 20:44:28 GMT
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


Mime
View raw message