<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can't find searc in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-t-find-searc/m-p/238270#M191400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to do a Lucene search from a Share Dashlet. The .get.js file has this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var nodes = search.luceneSearch("TEXT:dot");&lt;BR /&gt;model.resultset = nodes;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;which is hardcoded to find "dot" - just to get going &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I include my dashlet in my Share dashboard I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;An error has occured in the Share component: /share/service/components/dashlets/sgnaexlo.&lt;BR /&gt;It responded with a status of 500 - Internal Error.&lt;BR /&gt;Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.&lt;BR /&gt;Error Message: 08300029 Failed to load script '/org/alfresco/components/custom-dashlets/sgnaexlo.get.js (in classpath store file:/opt/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': 08300028 ReferenceError: "search" is not defined. (file:/opt/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/custom-dashlets/sgnaexlo.get.js#1)&lt;BR /&gt;Server: Alfresco Community v3.2.0 (2039) schema 2,019&lt;BR /&gt;Time: Sep 30, 2009 4:53:26 PM&lt;BR /&gt;Click here to view full technical information on the error.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;It can't find "search"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must be overlooking something, but I can't figure out what. Anybody that can point me in the right direction?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 15:01:58 GMT</pubDate>
    <dc:creator>gotfredsen</dc:creator>
    <dc:date>2009-09-30T15:01:58Z</dc:date>
    <item>
      <title>Can't find searc</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-find-searc/m-p/238270#M191400</link>
      <description>I want to do a Lucene search from a Share Dashlet. The .get.js file has this code:var nodes = search.luceneSearch("TEXT:dot");model.resultset = nodes;‍‍which is hardcoded to find "dot" - just to get going &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; When I include my dashlet in my Share dashboard I get this error:An error has occured in the</description>
      <pubDate>Wed, 30 Sep 2009 15:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-find-searc/m-p/238270#M191400</guid>
      <dc:creator>gotfredsen</dc:creator>
      <dc:date>2009-09-30T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find searc</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-find-searc/m-p/238271#M191401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Search" is not a root-scoped object in Share, it's not defined in the Surf API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#Root-scoped_Objects" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#Root-scoped_Objects&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to create and register a webscript in Alfresco and then access that from your Share dashlet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 07:41:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-find-searc/m-p/238271#M191401</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2009-10-01T07:41:06Z</dc:date>
    </item>
  </channel>
</rss>

