Increase Search Result Threshold Value in Alfresco

Increase Search Result threshold value in Alfresco

One the main requirement for any of Content Management system is that it should have strong search capabilities. Once all documents are stored in CMS user should be able to search them easily based on metadata or text content. Alfresco use Lucene search engine to assist this search capability and it is pretty strong and efficient. Out of box alfresco search is being limited to fetch only 1000 records during search to make it efficient but for larger repositories there are many times where we need to remove this search restriction on result size.

So, here are steps to remove that search result restriction on alfresco search.

To increase search result size you need to add following properties in

Step 1

Open this file

TOMCAT_HOME/shared/classes/alfresco/extension/alfresco-global.properties

And change following entries as per below

# The maximum time spent pruning results

system.acl.maxPermissionCheckTimeMillis=200000

# The maximum number of results to perform permission checks against

system.acl.maxPermissionChecks=20000

Place above file under following location in Alfresco installation

Lucene is configured to pick up result size from this property file so that whatever size you specify over here will be applicable to Lucene.

Step 2:

Also Change Max search result value from 250 to 20000 in following configuration of share-config-custom.xml

Here we are removing restriction from user interface so that it will allow more than 1000 results to be accommodated on interface. Out of box it is 1000 here we have changes it to 20000.

<config evaluator="string-compare" condition="Search">

     <search>

         <!-- default minimum length for search terms -->

         <min-search-term-length>1</min-search-term-length>      

         <!-- default maximum number of results for a search -->

         <max-search-results>20000</max-search-results>

       <!-- Repository search configuration option -->

         <repository-search>always</repository-search>

     </search>

     </config>

Once you do above changes restart your server.

You will see search restriction are removed you will be able to fetch more than 1000 records at a times. Still there is a maximum limit of 20000 records and it is always advisable to have some upper limit defined on your search so that you will not run out of memory even by mistake if you fire some kind of query which could have very large result set. Hope this would help to resolve your issue.

Looking for quality Alfresco Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , | Posted under Alfresco | RSS 2.0

Author Spotlight

mitpatoliya

mitpatoliya

I love opensource technologies working with those technologies from the time I have stepped in to the Software Industry. Alfresco CMS is my area of expertise. I have worked on various complex implementations which involved integration of Alfresco with other technologies, extensively worked with JBPM workflows and Webscripts.

Leave a Reply

Your email address will not be published. Required fields are marked *


× 9 = 72

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>