AnsweredAssumed Answered

Alfresco js error ReferenceError: search is not defined

Question asked by goutamjucse on Nov 24, 2014
Latest reply on Nov 24, 2014 by afaust
Hi ,

I am new to Alfresco Share(Community Edition 5.0.b). I am getting error <b>ReferenceError: search is not defined</b>

I am try to execute the script snippet placed in  (Alfresco\tomcat\webapps\share\js\forms-runtime.js)

var tmp = search.luceneSearch("PATH:\"/app:company_home\"");
    var companyhome = tmp[0];

Do I need to include some JS library for using the Search API?