12-06-2011 01:36 AM
filtro = 'document';
var res = search.luceneSearch("(PATH:\"/app:company_home/cm:" + url.extension + "//*\" ) AND (@cm\\:name:*" + filtro + "*)");
12-06-2011 05:41 AM
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"
12-06-2011 09:49 AM
12-06-2011 09:52 AM
12-06-2011 10:26 AM
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 + "*)";
12-06-2011 10:30 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.