I'm trying to define a 'smart folder template' to search for documents, but it doesn't work as expected. My target objective is to search documents by their properties, but I started with very simple criteria to retrieve/hit all documents. Here is my folder structure
The template finds only one file: docLib, that comes with Alfresco, and its type is image/png. I've also tried to use some of the search criteria from 'smartFolderExample.json' file with the same result. I appreciate any help to resolve the issue.
The path parameter that is required is not the one inside the query itself.
The query can be anything, without the need to include the path, as the Smart Folder can show objects from anywhere in the repository.
The required path parameter is used just when you are using the filing feature. See:
Mandatory property in a filing rule. Path to store new documents. This is the ISO9075 encoded QName.
More on the filing, from the same page:
Optional rule that defines the filing action for a new file when it is uploaded to the Smart Folder. If no filing rule is defined, files are not permitted to be uploaded to that folder. Parameters include: path: path where a document is physically stored classification: type and aspects assigned to the new file properties: property values attributed to the new file
If you are doing the correct search in a site with pdf files inside, and no values (and same results) are obtained both in Alfresco search field or Smart folder, you may check your SOLR indices and reindex if possible. You should see SOLR related errors in your solr.log or catalina.out, if it is the case.