Alfresco Search Criteria API

Alfresco Search Criteria API

Alfresco Search Criteria API is a simplified API for retrieving Alfresco nodes across Lucene or Solr engines without coding complex Lucene queries.

The main objective is to prevent code Lucene queries that are error-prone and tedious. Instead we will work with java objects Criteria that will shape our queries. Based on the original design of the Hibernate Criteria API created by Gavin King.

This API has been original created and designed to B2B2000 (, a great partner of Alfresco in Spain. Thanks to their generosity I could liberate to the community.

This API is in a BETA 1 VERSION. This API is provided with no guarantee. The author is not responsible for any damage caused by use the API.

Download list :


Example of use (code for search in two differents paths)

        List pathList = new ArrayList();
        pathList.add("My Folder");

        List pathList2 = new ArrayList();
        pathList2.add("My Second Folder");

        String query = SearchFacade

Lucene Query (result):

(PATH:"/app:company_home/cm:My_x0020_Folder/cm:Documents" OR PATH:"/app:company_home/cm:My_x0020_Second_x0020_Folder/cm:Invoices//*")