<?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 PATH not honored in search in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/path-not-honored-in-search/m-p/242545#M195675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My custom webscript has a parameter "space" that defaults to "/". If a value is passed that is appended to the company_home and I want the search to only look in that folder and ones below. However, it looks like it is not honoring this. I have tried encoding the space parameter in ISO9075Encode, still no luck. It returns all docs in all folders. I am guessing I am missing something trivial/ got the syntax wrong but I can't seem to figure it. please help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;//default&lt;BR /&gt;var space = "/";&lt;BR /&gt;&lt;BR /&gt;//Pass in reference to company_home. For company_home/Inbox, say Inbox&lt;BR /&gt;if ((args.space != "") &amp;amp;&amp;amp; (args.space != null))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; space = args.space;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;var query = 'PATH:\"/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}'+&lt;/A&gt; search.ISO9075Encode(space)+ '\"+TYPE:\"{&lt;A href="http://www.mycustommodel.com/model/content/1.0}doc\" rel="nofollow noopener noreferrer"&gt;http://www.mycustommodel.com/model/content/1.0}doc\&lt;/A&gt;"';&lt;BR /&gt;&lt;BR /&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 22:05:32 GMT</pubDate>
    <dc:creator>shikarishambu</dc:creator>
    <dc:date>2010-04-13T22:05:32Z</dc:date>
    <item>
      <title>PATH not honored in search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-not-honored-in-search/m-p/242545#M195675</link>
      <description>My custom webscript has a parameter "space" that defaults to "/". If a value is passed that is appended to the company_home and I want the search to only look in that folder and ones below. However, it looks like it is not honoring this. I have tried encoding the space parameter in ISO9075Encode, st</description>
      <pubDate>Tue, 13 Apr 2010 22:05:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-not-honored-in-search/m-p/242545#M195675</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2010-04-13T22:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: PATH not honored in search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-not-honored-in-search/m-p/242546#M195676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem comes from your Lucene query, company home is a special space ({&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}company_home" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home&lt;/A&gt;&lt;SPAN&gt;) , where as other spaces should be refered as ({&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}somespace" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}somespace&lt;/A&gt;&lt;SPAN&gt;) , so the fellowing query should work for you :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"PATH:\"/app:company_home/cm:"+search.ISO9075Encode(space)+"//*\" AND TYPE:\"{&lt;A href="http://www.mycustommodel.com/model/content/1.0}doc\" rel="nofollow noopener noreferrer"&gt;http://www.mycustommodel.com/model/content/1.0}doc\&lt;/A&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:17:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-not-honored-in-search/m-p/242546#M195676</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-04-13T23:17:07Z</dc:date>
    </item>
  </channel>
</rss>

