<?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: search result limits in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288779#M241909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using runas in this way only works for web scripts that are loaded from the classpath. For security reasons, it will not work for web scripts uploaded to the repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of putting the entry in desc xml, you can try it as below as well - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your java controller class you can use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;AuthenticationUtil.setRunAsUserSystem(); &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; perform your logic and then &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;AuthenticationUtil.clearCurrentSecurityContext();&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>Sat, 26 Apr 2014 08:03:00 GMT</pubDate>
    <dc:creator>romschn</dc:creator>
    <dc:date>2014-04-26T08:03:00Z</dc:date>
    <item>
      <title>search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288773#M241903</link>
      <description>Hello,is it possible to perform a search without imposing "permission evaluation" limitations. By default, alfresco will not return more than 1000 results. I can raise the limits but in some situations, like reporting and analytics, I don't actually care about permission evaluations and I want ALL t</description>
      <pubDate>Thu, 17 Apr 2014 12:05:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288773#M241903</guid>
      <dc:creator>darionis</dc:creator>
      <dc:date>2014-04-17T12:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288774#M241904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your custom code, if you execute the query with system user then it avoids permission checks and return all the results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:14:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288774#M241904</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-17T12:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288775#M241905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's probably an inappropriate approach.&amp;nbsp;&amp;nbsp; You will either run out of memory, time or other resources.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And there are documents which are not in the full text search index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco Enterprise already reports things like number of documents.&amp;nbsp; It does this be either an approximation which is the max docid.&amp;nbsp;&amp;nbsp; Or a canned sql query.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:19:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288775#M241905</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-04-17T12:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288776#M241906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;suggestion to use "system" user sounds good. I saw "canned query" term on Alfresco wiki but couldn't find any documentation. Is there any docs about "canned queries"? Is it like&amp;nbsp; stored procedure?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thing is that I am having hard time producing reports from alfresco. That involves queries that return lots and lots of results (simple property queries, no full text search). Returning 50000 rows from relational database is not uncommon, so I hoped I can do the same with alfresco if I turn off permission checks or anything that may affect search performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks! &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 09:54:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288776#M241906</guid>
      <dc:creator>darionis</dc:creator>
      <dc:date>2014-04-18T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288777#M241907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco 4.0 is using mybatis(ibatis) and moving some core queries to the datbase layer. this can offer better performance .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;canned query are just used to encapsulate some functions(for example pageing result ,filter result),canned query is implementated by org.mybatis.spring.SqlSessionTemplate.It is a wrapper of SqlSessionTemplate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you just want to create report ,I suggest you use some alfresco report add on,for example &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://code.google.com/p/alfresco-business-reporting/" rel="nofollow noopener noreferrer"&gt;https://code.google.com/p/alfresco-business-reporting/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 16:23:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288777#M241907</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-18T16:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288778#M241908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you execute the query with system user then it avoids permission checks and return all the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created web script that runs as system user: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;authentication runas="system"&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;. It simply omits some search results, 'admin' user returns more results. Interestingly, results that system user omits, come from folders with permissions inheritance turned off and permissions explicitly set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hoped system user does not evaluate permissions and returns absolutely everything, but it does not appear to be so?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288778#M241908</guid>
      <dc:creator>darionis</dc:creator>
      <dc:date>2014-04-25T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: search result limits</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288779#M241909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using runas in this way only works for web scripts that are loaded from the classpath. For security reasons, it will not work for web scripts uploaded to the repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of putting the entry in desc xml, you can try it as below as well - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your java controller class you can use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;AuthenticationUtil.setRunAsUserSystem(); &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; perform your logic and then &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;AuthenticationUtil.clearCurrentSecurityContext();&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>Sat, 26 Apr 2014 08:03:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-result-limits/m-p/288779#M241909</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-26T08:03:00Z</dc:date>
    </item>
  </channel>
</rss>

