<?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 Current space and OpenSearch in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153675#M108216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a webscript that search through the repository and added it in the OpenSearch component in the left sidebar. This works but I would like to restrict the search scope to the "current space". If the user is in the Data Dictionary it should only search in the that space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought there would be a possibility to add it in my JavaScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var query = "TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;"";&lt;BR /&gt;if ((args.q) &amp;amp;&amp;amp; (args.q != ""))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; query += " AND ("query += "@\\{http\\://&lt;A href="http://www.alfresco.org/model/content/1.0\\}name:*" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}name:*&lt;/A&gt;" + args.q + "*)";&lt;BR /&gt;}&lt;BR /&gt;model.searchResults = space.luceneSearch(query);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the "space" object isn't there. The search.luceneSearch(query) way works. Any idea how I can work around this, a way to get the current space in my JavaScript for my OpenSearch thing? I'm on Alfresco Enterprise 2.1.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice weekend!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 16:38:59 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2008-02-08T16:38:59Z</dc:date>
    <item>
      <title>Current space and OpenSearch</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153675#M108216</link>
      <description>Alfresco,I created a webscript that search through the repository and added it in the OpenSearch component in the left sidebar. This works but I would like to restrict the search scope to the "current space". If the user is in the Data Dictionary it should only search in the that space.I thought the</description>
      <pubDate>Fri, 08 Feb 2008 16:38:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153675#M108216</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2008-02-08T16:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Current space and OpenSearch</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153676#M108217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;*bump*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 15:10:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153676#M108217</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2008-02-15T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Current space and OpenSearch</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153677#M108218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;*bump*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 12:47:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-space-and-opensearch/m-p/153677#M108218</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2008-02-29T12:47:41Z</dc:date>
    </item>
  </channel>
</rss>

