<?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: Limitations of Lucene Results in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164540#M118274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I increase lucene result limit without modifying code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 06:40:22 GMT</pubDate>
    <dc:creator>nitinagarwal198</dc:creator>
    <dc:date>2011-10-07T06:40:22Z</dc:date>
    <item>
      <title>Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164534#M118268</link>
      <description>Hi,I was testing the abilities of Lucene on an Alfresco server with about 10k files. When I run the query as Admin, I get 1000 results (intentionally didn't raise that limit). In the next step, I've added a new user (Homer) and I gave Homer one file in his home folder. When I ran the query as Homer,</description>
      <pubDate>Fri, 18 Jul 2008 15:21:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164534#M118268</guid>
      <dc:creator>vanhoeck</dc:creator>
      <dc:date>2008-07-18T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164535#M118269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your problem is most likely not caused by "system.acl.maxPermissionChecks" being set to "1000". You should raise your "system.acl.maxPermissionCheckTimeMillis" to the longest time you could wait for search results. It seems that your first test returned 1000 results in less than 10 seconds and then stopped because "maxPermissionChecks" was hit. Your second test probably stopped after hitting "maxPermissionCheckTimeMillis" without returning results because it didn't have enough time to go past the document visible to the current user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words: with default settings Lucene filtering stops after 1000 checks or after 10 seconds (which one comes first). The only real solution to this problem is speeding up permission checks, since getting raw results out of Lucene indexes is already really fast. A temporary workaround for you could be setting a very high "maxPermissionCheckTimeMillis" value (and narrow down your search criteria as much as possible to reduce the raw resultset size).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are building a custom solution using Alfresco Foundation API and don't mind disabling permission checks on results you may try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;searchParameters.setLimitBy(LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS);&lt;BR /&gt;searchParameters.setLimit(0);&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This disables every permission check and returns the whole raw result set.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 19:26:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164535#M118269</guid>
      <dc:creator>francescof</dc:creator>
      <dc:date>2008-07-18T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164536#M118270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your problem is most likely not caused by "system.acl.maxPermissionChecks" being set to "1000". You should raise your "system.acl.maxPermissionCheckTimeMillis" to the longest time you could wait for search results. It seems that your first test returned 1000 results in less than 10 seconds and then stopped because "maxPermissionChecks" was hit. Your second test probably stopped after hitting "maxPermissionCheckTimeMillis" without returning results because it didn't have enough time to go past the document visible to the current user.&lt;BR /&gt;&lt;BR /&gt;In other words: with default settings Lucene filtering stops after 1000 checks or after 10 seconds (which one comes first). The only real solution to this problem is speeding up permission checks, since getting raw results out of Lucene indexes is already really fast. A temporary workaround for you could be setting a very high "maxPermissionCheckTimeMillis" value (and narrow down your search criteria as much as possible to reduce the raw resultset size).&lt;BR /&gt;&lt;BR /&gt;If you are building a custom solution using Alfresco Foundation API and don't mind disabling permission checks on results you may try:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;searchParameters.setLimitBy(LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS);&lt;BR /&gt;searchParameters.setLimit(0);&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;This disables every permission check and returns the whole raw result set.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer. I changed the time to 70000 and even 200000, but the one file did not appear. And even if it did work, I would still like to keep the time to search limited for growing numbers. Is there any way of knowing that Lucene has hit it's limits (some kind of overflow-check)? In that case, I can just return an error, asking for a more specific query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:41:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164536#M118270</guid>
      <dc:creator>vanhoeck</dc:creator>
      <dc:date>2008-07-22T07:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164537#M118271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When hitting the lucene configured limits Alfresco's ACLEntryAfterInvocationProvider sets LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS in result set metadata:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;ResultSet resultSet = searchService.query(…);&lt;BR /&gt;…&lt;BR /&gt;LimitBy limitBy = resultSet.getResultSetMetaData().getLimitedBy();&lt;BR /&gt;&lt;BR /&gt;if (LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS.equals(limitBy)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Search hit lucene configured limits… return the error here. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:37:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164537#M118271</guid>
      <dc:creator>francescof</dc:creator>
      <dc:date>2008-07-22T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164538#M118272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 13:11:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164538#M118272</guid>
      <dc:creator>vanhoeck</dc:creator>
      <dc:date>2008-07-22T13:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164539#M118273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this also possible to handle that without using the Alfresco Foundation API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with the javascript api / or the SOAP services or some general parameters in alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 17:18:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164539#M118273</guid>
      <dc:creator>ddanninger</dc:creator>
      <dc:date>2011-09-21T17:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164540#M118274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I increase lucene result limit without modifying code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 06:40:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164540#M118274</guid>
      <dc:creator>nitinagarwal198</dc:creator>
      <dc:date>2011-10-07T06:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164541#M118275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Switch to Alfresco 4 and use Solr.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 07:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164541#M118275</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-10-07T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164542#M118276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using alfresco 3.2 community version and I don't want to upgrade it. So, can you please tell me how can I increase lucene result limit. Is there any configuration file for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Switch to Alfresco 4 and use Solr.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2011 05:23:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164542#M118276</guid>
      <dc:creator>nitinagarwal198</dc:creator>
      <dc:date>2011-10-08T05:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164543#M118277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the first post in this thread.&amp;nbsp;&amp;nbsp; On 3.2 I think that's all you can do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2011 13:52:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164543#M118277</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-10-08T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Limitations of Lucene Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164544#M118278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;now we are in 5.0, how can we get all the results from lucene query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i dont want to change the lucene limit in global properties, only in one case i need all the results, it might be 10k or 100k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mallesham &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 07:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limitations-of-lucene-results/m-p/164544#M118278</guid>
      <dc:creator>katnam21</dc:creator>
      <dc:date>2015-06-19T07:01:58Z</dc:date>
    </item>
  </channel>
</rss>

