By modifying some of the settings, you can use the default
search collection to configure search of a secured portal site.
In order for you to use Portal Search for searching your
portal site, WebSphere® Portal Express® has
already prepared a search collection and a content source during installation.
For more information about this refer to Configuring a crawler to search your local portal site. To enable that search collection
on a secured portal site for search by users, encrypt the user ID
and activate the search collection by starting the crawl and indexing
process. Proceed by the following steps:
- To ensure encryption of the user ID and password for the
crawler, update and run the file searchsecret.xml using
the XML configuration interface. For details about how to do this,
refer to Encrypting sensitive data.
- Click . This opens the Manage
Search portlet.
- Click Search
Collections. This
opens the Search Collections panel.
- From the
list of search collections click the portal site
search collection Default Search Collection. This
opens the Content Sources panel for the portal site search collection.
It lists the Portal Search content sources.
- For the Portal Content Source, set the
crawler user ID
as described in the following procedure.
Note: It is of
benefit to define a dedicated crawler user ID. The pre-configured
default portal site search uses the default administrator user ID wpsadmin with
the default password of that user ID for the crawler. If you changed
the default administrator user ID during your portal installation,
the crawler uses that default user ID. If you want the crawler to
use the user ID wpsadmin and its default
password, you can omit the following sub-steps and proceed with the
next main step. If you have changed the password for the wpsadmin or
other administrative user ID, or if you changed the default administrator
user ID to an ID other than wpsadmin,
or if you want to use a separate user ID, proceed as follows:
- For the Portal Content Source click
the Edit icon.
- Update the user ID and password as required in the Security
tab.
- Click Save to save your changes.
Note: Set
the preferred language of the portal site crawler
user ID to match the language of the portal site search collection
that it crawls. If you already started a crawl on the portal site
search collection, you need to reset the portal site collection. Refer
to
Resetting the default search collection.
- Click the Start Collecting icon
to start the crawl. The crawler starts collecting and
indexing portal pages. By default, the crawl is scheduled to run for
one hour. The scheduler for regular repeated crawls is disabled by
default. If you enable it, the interval for scheduled crawls is every
hour. You can set these parameters by using the Manage
Search portlet:
- You can
change the duration of the crawl, depending
on the size of your portal installation. You do this by editing the
portal site content source under General Parameters.
- You enable scheduled crawls by clicking
the icon View
Content Source Schedulers for the content source and clicking Disabled in
the status column for the scheduler. The status changes to Enabled.
- You change the
interval for scheduled crawls by editing
the portal site content source, selecting the Schedulers tab,
deleting the default scheduler, and defining a new one.
Notes: - When you start the crawling process, be aware of the Memory required for crawls and the Time required for crawls and imports and availability of documents.
- If
a user tried to use the Search Center by entering a search
string in the portal search box in the theme and clicking search before an
administrator enabled the portal site search collection, the user
has to log out of the portal and log back in again in order to be
able to search the portal search collection. This includes the administrator
who enabled the portal search collection.