<?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 Restrict search to a specific site using REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31045#M13152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Alfresco CE 5.2. Using the REST API for Search, we want to restrict the search to a particular site only. Going through the Search API details&amp;nbsp;on the &lt;A href="https://api-explorer.alfresco.com/api-explorer/" rel="nofollow noopener noreferrer"&gt;API explorer&lt;/A&gt; page, we did not find any details on how to restrict search to one site.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also tried the following &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/229799-searching-for-a-document-in-a-folder-via-rest-api" rel="nofollow noopener noreferrer"&gt;solution provided by someone else&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"query": {&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"language": "afts",&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"query": "&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;PARENT:&amp;lt;node ID&amp;gt;&amp;nbsp;AND =name:'&amp;lt;search query&amp;gt;'"&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, this did not return any results for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to use the REST API to search within a specific site or folder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 15:30:22 GMT</pubDate>
    <dc:creator>vezance</dc:creator>
    <dc:date>2017-09-11T15:30:22Z</dc:date>
    <item>
      <title>Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31045#M13152</link>
      <description>We are using Alfresco CE 5.2. Using the REST API for Search, we want to restrict the search to a particular site only. Going through the Search API details&amp;nbsp;on the API explorer page, we did not find any details on how to restrict search to one site.&amp;nbsp;We also tried the following solution provided by so</description>
      <pubDate>Mon, 11 Sep 2017 15:30:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31045#M13152</guid>
      <dc:creator>vezance</dc:creator>
      <dc:date>2017-09-11T15:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31046#M13153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add SITE:&amp;lt;sitename&amp;gt; to your query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"query": "SITE:&amp;lt;sitename&amp;gt; ..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the folder to search within as "ANCESTOR":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"query": "ANCESTOR:\"workspace://SpacesStore/...\""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:48:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31046#M13153</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-09-12T08:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31047#M13154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one with 'SITE' did not work for us.&lt;/P&gt;&lt;P&gt;When you say &amp;lt;sitename&amp;gt;, do I just mention the site name e.g. 'My First Site', or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'ANCESTOR' one worked, though. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:37:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31047#M13154</guid>
      <dc:creator>vezance</dc:creator>
      <dc:date>2017-09-12T10:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31048#M13155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the site name should be the "short name" or "id" of the site. The one that's also used in the url to the site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:39:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31048#M13155</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-09-12T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31049#M13156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We tried that too e.g. 'my-first-site'. That didn't work either. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:43:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31049#M13156</guid>
      <dc:creator>vezance</dc:creator>
      <dc:date>2017-09-12T10:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31050#M13157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had testsite and it worked, maybe you have to put it in quotes when the string contains "-" :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"query":"SITE:\"my-first-site\""&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:45:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31050#M13157</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-09-12T10:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to a specific site using REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31051#M13158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked perfectly. Thanks Martin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 03:53:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-search-to-a-specific-site-using-rest-api/m-p/31051#M13158</guid>
      <dc:creator>vezance</dc:creator>
      <dc:date>2017-09-13T03:53:52Z</dc:date>
    </item>
  </channel>
</rss>

