<?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: Categories on Advanced Search query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303376#M256506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no ORM involved as this query is executed on the SOLR / Lucene search index - not on the database. The parameters submitted to the search look fine to me, but the search data web script (search.lib.js on Repository-tier) does not evaluate the -mode parameter for cm:categories (it does for any other type of field). I believe the particular documentation in the (publicly editable) wiki is either outdated, was never correct in the first place or that bug has been in the product for quite a while.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please file a JIRA ticket (if there is not already one) for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 10:42:46 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2014-09-24T10:42:46Z</dc:date>
    <item>
      <title>Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303373#M256503</link>
      <description>Hi everybody,I've modified the advanced search form to let users search documents by tags and Categories. That modification works fine but I noticed that Categorie's control works with OR instead of AND.For example, if you select one or more categories you will get documents with any of these catego</description>
      <pubDate>Tue, 23 Sep 2014 15:54:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303373#M256503</guid>
      <dc:creator>adrianfp84</dc:creator>
      <dc:date>2014-09-23T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303374#M256504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the search by categories works the same as the search by multiple terms in other fields - they use the default operator (OR) during evaluation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are addons in the Alfresco community that enable you to change that, e.g. &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://addons.alfresco.com/addons/alfresco-search-tweaks-zylk" rel="nofollow noopener noreferrer"&gt;https://addons.alfresco.com/addons/alfresco-search-tweaks-zylk&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;Search Tweaks by Zylk&amp;lt;/a&amp;gt; or &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://addons.alfresco.com/addons/alfresco-share-and-search" rel="nofollow noopener noreferrer"&gt;https://addons.alfresco.com/addons/alfresco-share-and-search&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;Share AND Search&amp;lt;/a&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 08:30:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303374#M256504</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-09-24T08:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303375#M256505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the extension from Contezza.nl and it doesn't solve the problem. The Zylk's extension doesn't appear on their website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I continued investigating on the issue in the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Adding the "mode" parameter on the cm:content Search Form in share-form-config.xml (&amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Forms#category.ftl" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/Forms#category.ftl&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;Forms- AlfrescoWiki&amp;lt;/a&amp;gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. I checked the rendered Advanced Search form and the mode is OK, there is a "AND":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;&amp;lt;input id="page_x002e_search_x002e_advsearch_x0023_default_0_prop_cm_categories-mode" name="prop_cm_categories-mode" value="AND" type="hidden"&amp;gt;&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. The searching request has the right mode parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/page/site/otv/search?t=&amp;amp;q=" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/site/otv/search?t=&amp;amp;q=&lt;/A&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_name":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_title":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_description":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_taggable":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_categories":"workspace://SpacesStore/1ef91b62-73ae-4450-9552-a76410530c87,workspace://SpacesStore/3cd6322a-f6e1-4559-bc3a-9f26b09d9e45",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_categories-mode":"AND",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_mimetype":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_modified-date-range":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_modifier":"","datatype":"cm:content"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&amp;amp;r=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if I'm doing something wrong but it seems to be ok. May be there is a bug in the Alfresco's ORM generating the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to tell that I'm using 5.0.a version&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303375#M256505</guid>
      <dc:creator>adrianfp84</dc:creator>
      <dc:date>2014-09-24T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303376#M256506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no ORM involved as this query is executed on the SOLR / Lucene search index - not on the database. The parameters submitted to the search look fine to me, but the search data web script (search.lib.js on Repository-tier) does not evaluate the -mode parameter for cm:categories (it does for any other type of field). I believe the particular documentation in the (publicly editable) wiki is either outdated, was never correct in the first place or that bug has been in the product for quite a while.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please file a JIRA ticket (if there is not already one) for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:42:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303376#M256506</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-09-24T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303377#M256507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adrian and Axel:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search Tweaks by Zylk is a component for implementing AND operator (instead of OR) in simple search (and it was developed for Alfresco 4.x). So the question it is quite different from this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding Adrian's case I had several issues (case 00161039) on the past relating 4.1.x EE with tags and categories operators. Adrian, did you try in share-config-custom.xml ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;control-param name="mode"&amp;gt;AND&amp;lt;/control-param&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:32:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303377#M256507</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2014-09-24T11:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303378#M256508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a bug ticket because there was not any ticket reporting this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope they fix it soon because is an important requirement for our most important customer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-21111?filter=-2" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-21111?filter=-2&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;JIRA ticket&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Axel!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:33:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303378#M256508</guid>
      <dc:creator>adrianfp84</dc:creator>
      <dc:date>2014-09-24T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303379#M256509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Agree with Axel, the problem is in the construction of the query, what it is passed to SOLR /Lucene subsystem and it does not involve database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303379#M256509</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2014-09-24T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Categories on Advanced Search query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303380#M256510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added the categories field for cm:content on the default cm:content search form on share-form-config.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that isn't the best practice so I tried extending that form on share-config-custom.xml but it doesn't take effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Cesar!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:51:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/categories-on-advanced-search-query/m-p/303380#M256510</guid>
      <dc:creator>adrianfp84</dc:creator>
      <dc:date>2014-09-24T11:51:11Z</dc:date>
    </item>
  </channel>
</rss>

