As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
function main() { var text = args["text"]; var name = args["name"]; logger.log(text); var query = "TEXT:" + (text == null ? "*" : text) + "cm:name:" + (name == null ? "*" : name); var def = { store: "workspace://SpacesStore", query: "TEXT:" + text + " cm:name:" + name, language: "fts-alfresco" }; var nodes = search.query(def); model.data = { "items": nodes }; } main();