Path Query in Alfresco

In previous two posts we had discussed about significance of query in content management system, different types of queries supported by Alfresco, XPath Query in detail, ISO encoding of filename during XPath query creation.

In this article, I am going to introduce you to one more type of query supported by Alfresco that is Lucene Path Queries. This is similar to XPath query but it has many advantages over XPath query. So, let us explore that.



This query always start with “PATH” key word and then drill down path of particular folder under which we want to search the documents. The path to a node is the trail of QNames of the child relationships to get to the node.


For Instance if we want to navigate to following folder structure through our query we can create Path Query as follow.

To find all nodes at any depth below “Following Email Templates” including that folder



 To find the all nodes with QName “app:following” anywhere in the repository:

PathSearch Alfresco1

To find all the children of all the all nodes with QName ” app:following” anywhere in the repository:


PathSearch Alfresco2
1.  Name which appears on User Interface might be different for all application related to folders so you need to go to node browser to check exact name to put in path query. For Instance for “Data Dictionary” it is “dictionary”
2.  Other thing is that for all application folders prefix will be “app” not “cm” for sites folder it will be “st” so check it properly through node browser.


I would also like to add important note give on wiki page related to Path Query that is, if you have a large repository, increase the cache sizes to reflect common PATH queries otherwise your queries may be slower than expected.


Looking for quality Alfresco Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , | Posted under Alfresco | RSS 2.0

Author Spotlight


I love opensource technologies working with those technologies from the time I have stepped in to the Software Industry. Alfresco CMS is my area of expertise. I have worked on various complex implementations which involved integration of Alfresco with other technologies, extensively worked with JBPM workflows and Webscripts.

Leave a Reply

Your email address will not be published. Required fields are marked *