Configuring the default location for search collections
The default directory location under which search collections
are created is as follows:
This default can be applied when you create a new search collection,
depending on the value you specify in the entry field Location
of Collection when you create a new search collection:
- If you type a relative directory location of your choice, the location
for the new search collection is combined from the default directory for search
locations and the location that you type. Example: If you type my_collection_location,
the new search collection is created under the directory portal_server_root/collections/my_collection_location .
- If you want to create the search collection in a location that is different
from the default search collection location, type the full directory location
as required. The new search collection will be created under the directory
location that you specified.
You can customize this default directory location under which
search collections are created. To do this, you set the directory location
of your choice as the value for the parameter DefaultCollectionsDirectory for
the search service. You can configure this parameter for each search service
separately. The value that you set for this parameter is prefixed to the
relative location that you specify when creating a new search collection for
that search service.
The specified value determines the default directory
location for the search collections that you create. When you create a new
search collection and specify only a relative path (not a full path location),
the default value set by this parameter and the relative path that you specify
are combined to form the full directory path under which the search collection
is created. If you do not specify a value for DefaultCollectionsDirectory,
the default directory for search collections remains as set by the installation
and described above.
To configure a different default search collection
location, proceed by the following steps:
- Navigate to the Manage Search portlet by
clicking the .
- Click Search Services.
- Click the New Search Service button. Or,
if you want to customize the default collection location for an existing search
service, click the Edit icon for that search service.
- Set the value of your choice for the parameter DefaultCollectionsDirectory for
the search service. The value that you set for this parameter is prefixed
to the relative location that you specify when creating a new search collection.
For details about the value refer to the description above.
- Click OK to save your updates. Manage Search
returns to the Search Services panel.
Notes:
- The directory location that you specify can be on a different hard drive
or machine.
- If you change the value for the DefaultCollectionsDirectory parameter,
make sure that you do all of the following:
- Specify a full directory path, for example, /root/our_search_collections.
- On the specified hard drive create the directory that you specify as the
value for the DefaultCollectionsDirectory parameter.
- Manage the write access to the directory to enable creation of search
collections in that directory.
- The value set for this parameter is used only if during the creation of
a new search collection you specify a relative directory for the location
of the new search collection. If you specify a full directory for the
location of the search collection, the collection is created in that directory.
In this case the value that is set for the default directory under the search
service has no effect, but is overwritten by the full directory location that
you specify for the search collection.
- The initial default directory as given above is created during the installation.
The process has write access to this default directory.
- The default site collection that is part of the installation is created
under the default directory. Creation of the site collection is started when
you navigate to the Manage Search portlet. If you created the site collection
by navigating to the Manage Search portlet before changing the default
directory for the collection location, you might want to relocate the site
collection to your new default directory. For
details about how to do this, refer to Creating or resetting the portal site collection.
- If you set up a remote search service, for example for a cluster, then
this parameter is mandatory. You need to configure the default location for
search collections to a directory on the remote server that has write access.
- The file path length for search collections is limited to 118 characters.
If this limit is exceeded, the collection cannot be created. In this case
specify a shorter value for the parameter DefaultCollectionsDirectory. This can occur particularly when the site collection is created
under Linux operating systems. For
details about this refer to Creating the portal site search collection fails.
Parent topic: Administering Portal Search
|
|
|