AnsweredAssumed Answered

search.luceneSearch: ReferenceError

Question asked by cmarguello on Nov 29, 2010
Latest reply on Dec 2, 2010 by cmarguello
Hi, im new in Alfresco, so i am trying to run a simple web script that make query through search.lucenSearch, but i have an error:

Exception: org.mozilla.javascript.EcmaError - ReferenceError: "search" is not defined.

i just do this:
      var query = "+PATH:\"/app:company_home/st:sites/cm:mysite//*\"+ALL:\"Primer\"";
      var nodos= search.luceneSearch(query);
      var numNodos = nodos.length;

I dont find why its happening.

I try to run de script
http://wiki.alfresco.com/wiki/Web_Scripts_Examples#Blog_Category_Search
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 10300112 Failed to load script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/categorysearch.get.js': 10300111 ReferenceError: "search" is not defined.

But it has the same problem…


thakns for help

cmarguello

Outcomes