Use this information to control the maximum number of items that an Alfresco Share search returns.
By default, the Share search feature returns a maximum of 250 search results. You can extend this number of search results to return more than 250 entries.
Download your share-config.xml file found at tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml, for more see Share Configuration Extension Point.
Open the share-config.xml file and copy the <config evaluator="string-compare" condition="Search" replace="true"> section.
Open the <web-extension>share-config-custom.xml file and then paste the copied section.
Locate the <max-search-results>250</max-search-results> property and then edit the value to your preferred number of search results.
For the changes to take effect, refresh the Alfresco Content Services web scripts. To refresh the web scripts:
Navigate to the web scripts Home page.
For example, go to: http://<your-host>:8080/share/page/index.
Click Refresh Web Scripts.
You have now refreshed the web scripts and set a limit to the number of items a search in Share returns.