<?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 Search all a space and all children in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199781#M152911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on a webscript that allows a user to search a current space.&amp;nbsp; I have it working that it searches the current space for the query string, but I can't get it to recursively look at the current space and all child spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My current script looks like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#assign currentNodeId = args.h&amp;gt;&lt;BR /&gt;&amp;lt;#assign currentNode = companyhome.nodeByReference[currentNodeId]&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;#assign searchString = args.s&amp;gt;&lt;BR /&gt;&amp;lt;#if (searchString == "")&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign results = currentNode.children?sort_by('name') &amp;gt;&lt;BR /&gt;&amp;lt;#else&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign queryString = "(PATH:\"${currentNode.qnamePath}/*\") AND ((TEXT:\"${searchString}\") OR (@cm\\:name:*${searchString}*))" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;BR&amp;gt;${queryString}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign results = companyhome.childrenByLuceneSearch[queryString] &amp;gt;&lt;BR /&gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&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;/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;The output of the queryString produces this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(PATH:"/app:company_home/cm:Community_x0020_Spaces/cm:Intranet_x0020_Forms/*") AND ((TEXT:"time") OR (@cm\:name:*time*)) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine for searching the given folder, but not the given folder, and all subfolders and so on down the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way I can get that to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 18:10:25 GMT</pubDate>
    <dc:creator>mliedtke</dc:creator>
    <dc:date>2008-09-17T18:10:25Z</dc:date>
    <item>
      <title>Search all a space and all children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199781#M152911</link>
      <description>Hi All,I'm working on a webscript that allows a user to search a current space.&amp;nbsp; I have it working that it searches the current space for the query string, but I can't get it to recursively look at the current space and all child spaces.My current script looks like this&amp;lt;#assign currentNodeId = ar</description>
      <pubDate>Wed, 17 Sep 2008 18:10:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199781#M152911</guid>
      <dc:creator>mliedtke</dc:creator>
      <dc:date>2008-09-17T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search all a space and all children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199782#M152912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried searching with the double oblique?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this: +PATH:"/dirA/dirB//*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 14:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199782#M152912</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2008-09-18T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search all a space and all children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199783#M152913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That did it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 14:29:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-all-a-space-and-all-children/m-p/199783#M152913</guid>
      <dc:creator>mliedtke</dc:creator>
      <dc:date>2008-09-18T14:29:12Z</dc:date>
    </item>
  </channel>
</rss>

