<?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 Making Share use AND in serch by default in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250519#M203649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to change default search in Share to be AND (and not OR), feedback from many users is that this is what they expect (Google like…)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have modified repo.jscript.Search class so this can be set by parameters, and it takes effect (se debug output below). Problem is that when AND is used there are no results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;search.get.config.xml modified to have &amp;lt;default-query-template&amp;gt;%(TEXT)&amp;lt;/default-query-template&amp;gt;, also tried %(ALL).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created some test documents with aaaa in them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This gives 0 result ( using sp.setDefaultOperator(SearchParameters.AND in Search.java);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPECTED: 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do I not get any results here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; 2012-08-22 18:20:44,769&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-60] Query:&lt;BR /&gt;((PATH:"/app:company_home/st:sites/*/*//*" AND (aaaa&amp;nbsp; AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"&lt;BR /&gt;Sortby: &lt;BR /&gt; 2012-08-22 18:20:44,786&amp;nbsp; DEBUG [repo.jscript.Search] [http-8080-60] jScript search andOperator true&lt;BR /&gt; 2012-08-22 18:20:44,786&amp;nbsp; DEBUG [repo.jscript.Search] [http-8080-60] jScript search: SearchParameters [allAttributes=[], defaultFTSFieldOperator=AND, defaultFTSOperator=AND, defaultFieldName=keywords, excludeDataInTheCurrentTransaction=false, language=fts-alfresco, limit=502, limitBy=FINAL_SIZE, locales=[], maxItems=-1, maxPermissionCheckTimeMillis=-1, maxPermissionChecks=-1, mlAnalaysisMode=null, namespace=&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;, permissionEvaluation=EAGER, query=((PATH:"/app:company_home/st:sites/*/*//*" AND (aaaa&amp;nbsp; AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden", queryParameterDefinitions=[], queryTemplates={keywords=%(TEXT)}, skipCount=0, sortDefinitions=[], stores=[workspace://SpacesStore], textAttributes=[], fieldFacets=[]]&lt;BR /&gt; 2012-08-22 18:20:44,842&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-60] Processing resultset of length: 0&lt;BR /&gt; 2012-08-22 18:20:44,842&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-60] Filtered resultset to length: 0. Discarded item count: 0&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This gives 2 result ( using sp.setDefaultOperator(SearchParameters.OR in Search.java);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPECTED: 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;2012-08-22 18:23:29,605&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-25] Query:&lt;BR /&gt;((PATH:"/app:company_home/st:sites/*/*//*" AND (aaaa&amp;nbsp; AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"&lt;BR /&gt;Sortby: &lt;BR /&gt; 2012-08-22 18:23:29,606&amp;nbsp; DEBUG [repo.jscript.Search] [http-8080-25] jScript search andOperator false&lt;BR /&gt; 2012-08-22 18:23:29,607&amp;nbsp; DEBUG [repo.jscript.Search] [http-8080-25] jScript search: SearchParameters [allAttributes=[], defaultFTSFieldOperator=OR, defaultFTSOperator=OR, defaultFieldName=keywords, excludeDataInTheCurrentTransaction=false, language=fts-alfresco, limit=502, limitBy=FINAL_SIZE, locales=[], maxItems=-1, maxPermissionCheckTimeMillis=-1, maxPermissionChecks=-1, mlAnalaysisMode=null, namespace=&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;, permissionEvaluation=EAGER, query=((PATH:"/app:company_home/st:sites/*/*//*" AND (aaaa&amp;nbsp; AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden", queryParameterDefinitions=[], queryTemplates={keywords=%(TEXT)}, skipCount=0, sortDefinitions=[], stores=[workspace://SpacesStore], textAttributes=[], fieldFacets=[]]&lt;BR /&gt; 2012-08-22 18:23:29,636&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-25] Processing resultset of length: 2&lt;BR /&gt; 2012-08-22 18:23:29,665&amp;nbsp; DEBUG [repo.jscript.ScriptLogger] [http-8080-25] Filtered resultset to length: 2. Discarded item count: 0&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the search in many combinations, 1 or more parameters. If I search on node browser with for example ALL:aaaa AND ALL:bbbb I get hits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it that the query template thingy is not compatible with AND?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 17:20:54 GMT</pubDate>
    <dc:creator>loftux</dc:creator>
    <dc:date>2012-08-22T17:20:54Z</dc:date>
    <item>
      <title>Making Share use AND in serch by default</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250519#M203649</link>
      <description>I'm trying to change default search in Share to be AND (and not OR), feedback from many users is that this is what they expect (Google like…)I have modified repo.jscript.Search class so this can be set by parameters, and it takes effect (se debug output below). Problem is that when AND is used there</description>
      <pubDate>Wed, 22 Aug 2012 17:20:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250519#M203649</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2012-08-22T17:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Making Share use AND in serch by default</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250520#M203650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Figured it out what was wrong, in search.lib.js for the slingshot Search webscript, you have to add an explicit OR between allowable types. Else it will by ANDed an no nodes will ever be of both types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ftsQuery += ' AND (+TYPE:"cm:content" OR +TYPE:"cm:folder")';&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 06:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250520#M203650</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2012-08-23T06:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Making Share use AND in serch by default</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250521#M203651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyone is interested i blogged about my changes here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://loftux.com/2012/08/24/fix-alfresco-share-quick-search/" rel="nofollow noopener noreferrer"&gt;http://loftux.com/2012/08/24/fix-alfresco-share-quick-search/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and in this issue I have attached a source diff &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-6349" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-6349&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 12:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-share-use-and-in-serch-by-default/m-p/250521#M203651</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2012-08-24T12:56:58Z</dc:date>
    </item>
  </channel>
</rss>

