Open Source Support Tools
 
Search Item
 
Summary
  Mail Thread
Title: search for a node with a path like...
Project: jackrabbit
Item Last Modified: Mon Aug 25 06:38:07 PDT 2008
Tags:  
 
 
MailThread called com dan+diephouse database find jackrabbit kind node path paths query search something suggest type users
Details
search for a node with a path like...
2 Messages Collapse AllExpand All
Marcel Reutegger to users25 Aug 2008 13:38:07 GMT
Hi,

no, that's not possible, but see also: http://markmail.org/message/6d3dwdpev2si2zf6

regards
marcel

Dan Diephouse wrote:
> We'd like users to be able to search for a node in our database using a
> suggest box type interface. So when they type in "/Foo/B" we can search
> through and find a node called "/Foo/Bar". Is there any way to search by
> path name? ideally something like:
>
> jcr:like(full-node-path(), '/Foo/B')
>
> Or do I have to parse out the various paths and construct some kind of query
> like
>
> //Foo/jcr:like(local-name(), 'B')
>
> (not sure if that syntax is exactly right, but you get the idea)
>
> Dan




Dan Diephouse to users20 Aug 2008 14:29:09 GMT
We'd like users to be able to search for a node in our database using a
suggest box type interface. So when they type in "/Foo/B" we can search
through and find a node called "/Foo/Bar". Is there any way to search by
path name? ideally something like:

jcr:like(full-node-path(), '/Foo/B')

Or do I have to parse out the various paths and construct some kind of query
like

//Foo/jcr:like(local-name(), 'B')

(not sure if that syntax is exactly right, but you get the idea)

Dan
--
Dan Diephouse
http://mulesource.com | http://netzooid.com/blog