<?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 Re: Filer Content by Site and Category in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267341#M220471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"I've found webscripts that allow me to search content by category, but I also want to filter by site as well."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please give code for above, i need to pass catagory name as parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var results = search.luceneSearch("workspace://SpacesStore", "TEXT&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;ensions CATEGORY:CatGeography"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;janaka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 18:52:31 GMT</pubDate>
    <dc:creator>janaka1984</dc:creator>
    <dc:date>2014-07-24T18:52:31Z</dc:date>
    <item>
      <title>Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267336#M220466</link>
      <description>I've found webscripts that allow me to search content by category, but I also want to filter by site as well.I.e get a json output of all content within a site tagged as a specific category.Is there any available for that that I have missed or should I create my own. Thanks</description>
      <pubDate>Fri, 04 May 2012 08:20:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267336#M220466</guid>
      <dc:creator>kriton</dc:creator>
      <dc:date>2012-05-04T08:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267337#M220467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Going into the search page for a specific site in Share, opening up my web console in my browser, and executing search for each of the three options (this site, all sites, entire repository), I can see the different web scripts that are used. They are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This specific site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[09:17:16.530] GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/slingshot/search?site=test-site-1&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/slingshot/search?site=test-site-1&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false&lt;/A&gt;&lt;SPAN&gt; [HTTP/1.1 200 OK 133ms]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the "site" argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All sites:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[09:17:56.520] GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false&lt;/A&gt;&lt;SPAN&gt; [HTTP/1.1 200 OK 173ms]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "site" argument is empty and "repo" is set to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Entire repository:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[09:18:50.451] GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=test&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=true&lt;/A&gt;&lt;SPAN&gt; [HTTP/1.1 200 OK 272ms]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "site" argument is empty and "repo" is set to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267337#M220467</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-05-04T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267338#M220468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately this does not help me much as it does not allow me to filter by a specific category.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I dont want to search by a term. I want to get all results under a specific category found on a specific site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found that I can get content taged under a specific category like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/service/components/documentlibrary/data/doclist/all/site/ise/documentLibrary?filter=category&amp;amp;filterData=/Client/Audi" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/service/components/documentlibrary/data/doclist/all/site/ise/documentLibrary?filter=category&amp;amp;filterData=/Client/Audi&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However it seems that when passing this filter, the path part of the webscript will be completely ignored. I modified the webscript so that filtered searches are further filtered to match the site given in the path… so I got it working… but there may have been an enterily easier solution to this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:40:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267338#M220468</guid>
      <dc:creator>kriton</dc:creator>
      <dc:date>2012-05-08T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267339#M220469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about using Alfresco FTS syntax instead. Both categories and paths use the PATH keyword. So, searching for something in a given category and a given folder path would just AND the terms together. For example, the following would find documents categorized under English and that reside in test-site-1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/cm:categoryRoot/cm:generalclassifiable/cm:Languages/cm:English/member" AND PATH:"/app:company_home/st:sites/cm:test-site-2/cm:documentLibrary//*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running that through the search web script would look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;[09:56:22.824] GET &lt;A href="http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=PATH%3A%22%2Fcm%3AcategoryRoot%2Fcm%3Ageneralclassifiable%2Fcm%3ALanguages%2Fcm%3AEnglish%2Fmember%22%20AND%20PATH%3A%22%2Fapp%3Acompany_home%2Fst%3Asites%2Fcm%3Atest-site-3%2Fcm%3AdocumentLibrary%2F%2F*%22&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/slingshot/search?site=&amp;amp;term=PATH%3A%22%2Fcm%3AcategoryRoot%2Fcm%3Ageneralclassifiable%2Fcm%3ALanguages%2Fcm%3AEnglish%2Fmember%22%20AND%20PATH%3A%22%2Fapp%3Acompany_home%2Fst%3Asites%2Fcm%3Atest-site-3%2Fcm%3AdocumentLibrary%2F%2F*%22&amp;amp;tag=&amp;amp;maxResults=251&amp;amp;sort=&amp;amp;query=&amp;amp;repo=false&lt;/A&gt; [HTTP/1.1 200 OK 91ms]&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;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:02:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267339#M220469</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-05-08T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267340#M220470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this worked nice, thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:02:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267340#M220470</guid>
      <dc:creator>kriton</dc:creator>
      <dc:date>2012-05-09T12:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Content by Site and Category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267341#M220471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"I've found webscripts that allow me to search content by category, but I also want to filter by site as well."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please give code for above, i need to pass catagory name as parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var results = search.luceneSearch("workspace://SpacesStore", "TEXT&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;ensions CATEGORY:CatGeography"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;janaka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 18:52:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filer-content-by-site-and-category/m-p/267341#M220471</guid>
      <dc:creator>janaka1984</dc:creator>
      <dc:date>2014-07-24T18:52:31Z</dc:date>
    </item>
  </channel>
</rss>

