ACSCE-5X practice question 2 of 15

You want to increase the maximum number of results returned by searches in Share from the default 250 to 1000. How would you affect this change?

Full set: 87 questions
Answer options
A: Set system.acl.maxPermissionChecks in alfresco-global.properties to 1000.
B: Set maxSearchResults in users.js to 1000.
C: Set maxSearchResults in nodebrowser.js to 1000.
D: Set max-search-results in share-config-custom.xml to 1000. Correct answer
Correct Answer:
D. Set max-search-results in share-config-custom.xml to 1000.
Explanation

The maximum number of results returned by a search in the Alfresco Share interface is a configurable application setting. The correct and standard method to override the default value is by modifying the Share configuration file. The element, located within the section of share-config-custom.xml, directly controls this limit. Setting its value to 1000 will achieve the desired outcome. This approach ensures that customizations are maintained across upgrades and follows Alfresco's recommended extension patterns.

Why Incorrect

A. system.acl.maxPermissionChecks is a repository-side setting that limits the number of permissions evaluated during a search to prevent performance issues, not control the UI result count.
B. Modifying users.js is incorrect as this file pertains to the user management components and does not control the global content search results limit.
C. Modifying nodebrowser.js is incorrect as this file is specific to the Node Browser administration tool, not the primary search interface used by end-users.

References

1. Alfresco Content Services 5.2 Documentation, Administering > Configuring Alfresco Share > Share configuration files > share-config-custom.xml file: This section describes the purpose of share-config-custom.xml as the primary location for overriding default Share configurations.

2. Alfresco Content Services 5.2 Documentation, Administering > Configuring Alfresco Share > Configuring search: This page explicitly details the search configuration options. It states, "The property specifies the maximum number of search results to return." and provides an example of its use within share-config-custom.xml. The default is listed as 250.

3. Alfresco Content Services 5.2 Documentation, Administering > Tuning the server > Tuning search > alfresco-global.properties settings for search: This section describes the system.acl.maxPermissionChecks property, clarifying its role in limiting ACL evaluation for performance reasons, which is distinct from limiting the number of results returned to the user interface.

Scroll to Top