filtro = 'document';
var res = search.luceneSearch("(PATH:\"/app:company_home/cm:" + url.extension + "//*\" ) AND (@cm\\:name:*" + filtro + "*)");
To find all nodes with the cm:name property containing words starting with "ban":
@cm\:name:ban*
To find all nodes with the cm:name property containing words ending with "ana":
@cm\:name:*ana
The standard Lucene query parser does not allow wild cards at the start for performance reasons. Use this with caution.
To find all nodes with the cm:name property containing words containing "anan":
@cm\:name:*anan*
To find all nodes with the cm:name property containing phrase "green banana":
@cm\:name:"green banana"
var query = "(PATH:\"app:company_home/cm:" + url.extension + "//*\")";
if(args.filter != undefined){
query += " AND (+@cm\\:name:\"*" + args.filter + "*\")";
}
var res = search.luceneSearch(query);
query += " AND (+@cm\\:name:\"*" + args.filter + "*\")";
query += " AND (+@cm\\:name:*" + args.filter + "*)";
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.