This topic provides instructions on controlling the maximum number of items that
a Share search returns.
By default, the Share search returns a maximum of 250 search results. If you want
the search to return more than 250 entries, complete the following steps.
-
Ensure that the <web-extension>\share-config-custom.xml
file exists. If the file does not exist:
-
Locate the following .sample configuration
override file:
<web-extension>\share-config-custom.xml.sample
-
Copy and rename the file to:
<web-extension>\share-config-custom.xml
-
Locate the following .sample configuration
override file:
- Copy the <config evaluator="string-compare" condition="Search" replace="true"> section from the <configRoot>\classes\alfresco\share-config.xml file.
- Paste the copied section into the <web-extension>\share-config-custom.xml file.
- In the <web-extension>\share-config-custom.xml file, edit the value for the <max-search-results> property to reflect the number of search results you want Share to return.
-
For the changes to take effect, refresh the SkyVault web scripts. To refresh
the web scripts:
-
Navigate to the SkyVault web scripts Home page.
For example, go to: http://<your-host>:8080/share/page/index.
-
Click on Refresh Web Scripts.
You have now refreshed the web scripts and set a limit to the number of items a search in Share returns.
-
Navigate to the SkyVault web scripts Home page.
-
Test the search configuration.
-
Browse to the location of your SkyVault installation.
For example, http://<your-host>:8080/share.
- Search for folders or documents in the Share repository.
Notice that the number of search items returned is not more than what you specified in the <web-extension>\share-config-custom.xml file.
Note: Custom searches and searches from the node browser use the solr.query.maximumResultsFromUnlimitedQuery property to control search results. For more information, see Solr core configuration properties. -
Browse to the location of your SkyVault installation.