Customizing the All Sources scope
Delete or replace the All Sources default scope.
About this task
All Sources
scope is a special scope in portal. This scope has a unique ID and
it searches in all the search collections that are accessible to the
user, including collections from existing local and remote search
services. The All Sources scope can be deleted or customized just
like other search scopes. There are three possible actions that can
be performed on the All Sources scope:
- Choose a different default scope
- Delete the All Sources scope
- Re-add the All Sources scope
To change the default search scope from All Sources to
a different scope, reorder the scopes using search administration:
- Navigate to the Manage Search portlet by clicking .
- Click Search Scopes.
- Move the scope that you want to be the default scope to the beginning of the scopes list by clicking the up-arrow icon next to the scope name. The first scope on the list becomes the default search scope.
Note: Users have to clear their browser cache for the new scope
to be available and displayed in the correct position.
The All Sources scope is created using a mechanism called out-of-the-box (OOB) scopes registration and it is stored as a property in the WebSphere® Integrated Solutions Console. Since the All Sources scope is added using the OOB scopes registration mechanism, you must delete the All Sources scope using both the WebSphere Integrated Solutions Console and the search administration interface:
Procedure
Results
- In the navigation click .
- Make the appropriate selection, depending on your portal environment:
- In the Resource Environment Providers page, select the appropriate
node or cluster from the scopes pull-down list, or uncheck the Show
Scope selection drop-down check box and select one of the following
options, depending on your portal environment:
- If your portal is running as a single server, select Browse Nodes and select the node.
- If your portal is installed in a cluster, select Browse Clusters and select the portal cluster.
- In the Resource Environment Providers page, select the appropriate
node or cluster from the scopes pull-down list, or uncheck the Show
Scope selection drop-down check box and select one of the following
options, depending on your portal environment:
- Select the WP ScopeConfigService service.
- Click Custom Properties.
- Click New to create a new scope property.
- Name the new property All Sources. Enter
this XML scope element as the property value:
<scope id="com.ibm.lotus.search.ALL_SOURCES"> <title xml:lang="en">All Sources</title> <description xml:lang="en">All Sources accessible by the user</description> <scopeProperty key="iconURI" value="/wps/images/icons/scope_search_all.gif"/> <scopeProperty key="isVisibletoAnonymousUser" value="true"/> <scopeElement></scopeElement> </scope>Note: You can change the name, description and icon for the new scope. To create a scope in a language other than English, change the xml:lang attribute to the required locale, such as de for German. - Click Save to save the new property.