I am working to search all PNG files(i.e. all files which has file name extension ".png") in alfresco. I am using the followingcode, but it does not return any result:
var docs = search.luceneSearch("@cm\\:content.fileType:\"*.png\"");
for (var i=0; i<docs.length; i++)
{
//TO print the name of files--> "Name: " + docs[i].name ;
}
I am not sure if content.fileType is the right way to code to search for file types. Any suggestion please ?
If I use this statement, it helps to find only PNG images:
var docs = search.luceneSearch("@cm\\:name:\"png\"");