<?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: Faceted search customization in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307470#M260600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written up a solution in this &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2016/09/16/customizing-search-queries" rel="nofollow noopener noreferrer"&gt;blog post&lt;/A&gt;. It contains a link to a sample solution, although some further tweaking maybe required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 09:09:22 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2016-09-16T09:09:22Z</dc:date>
    <item>
      <title>Faceted search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307468#M260598</link>
      <description>Hi,I've created a new page which is a copy of the faceted search. I now want to accomplish the following: The search result should only consider documents (from cm:content or any particular other type from our custom content model). But no folders, datalists, forumposts, links, wikipages that may al</description>
      <pubDate>Thu, 18 Aug 2016 16:20:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307468#M260598</guid>
      <dc:creator>itzamna</dc:creator>
      <dc:date>2016-08-18T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Faceted search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307469#M260599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a number of options here... I think that your best bet is to actually create a custom service that extends the&amp;nbsp;alfresco/services/SearchService. You should override the "onSearchRequest" function and update the "payload" argument that is provided in order to add additional search queries to either the "term" or add new attributes to be processed as query attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dojo/_base/declare"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"alfresco/services/SearchService"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;declare&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;SearchService&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;SearchService&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onSearchRequest&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;payload&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; payload&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;term &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; payload&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;term &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// &amp;lt;- Add more search terms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; payload&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datatype &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"cm:content"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// Added as a query parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;inherited&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arguments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// This calls the superclass function&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can then use your custom service in place of the regular SearchService (remember to remove the original SearchService from the list of services!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the AlfSearchList publishes a request to search, your custom service will process the request - updating the published payload with additional data and then call the original service function to process the request as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2013/09/18/how-to-add-amd-packages-to-share-via-extension-modules" rel="nofollow noopener noreferrer"&gt;blog post&lt;/A&gt; shows how to add a new package (that you'll want for your custom search service module) via an extension module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:07:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307469#M260599</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-15T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Faceted search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307470#M260600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written up a solution in this &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2016/09/16/customizing-search-queries" rel="nofollow noopener noreferrer"&gt;blog post&lt;/A&gt;. It contains a link to a sample solution, although some further tweaking maybe required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 09:09:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307470#M260600</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-16T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Faceted search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307471#M260601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After writing up the blog post I subsequently fixed the issue. See&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/Aikau/issues/1240" title="https://github.com/Alfresco/Aikau/issues/1240" rel="nofollow noopener noreferrer"&gt;AlfSearchList should be configurable to publish additional query parameters · Issue #1240 · Alfresco/Aikau · GitHub&lt;/A&gt;&amp;nbsp;/&amp;nbsp;&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/AKU-1111" title="https://issues.alfresco.com/jira/browse/AKU-1111" rel="nofollow noopener noreferrer"&gt;[AKU-1111] AlfSearchList should be configurable to publish additional query parameters - Alfresco JIRA&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from Aikau 1.0.96 it is possible to configure the "additionalQueryParameters" attribute on the AlfSearchList widget to achieve this requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 10:42:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/faceted-search-customization/m-p/307471#M260601</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-12-13T10:42:41Z</dc:date>
    </item>
  </channel>
</rss>

