Package com.sapportals.wcm.service.indexmanagement

Provides a service for managing indexes.

See:
          Description

Interface Summary
IIndex Represents a generic index object of the index management service.
IIndexFolder Folder that is attached to an index.
IIndexFolderIterator Iterator for a IIndexFolderList list
IIndexFolderList List of IIndexFolders.
IIndexService Manages the indexes of the content management system.
IIndexServiceEvent This event is send by the index management event mapper to the index management service if another service sent an event.
ISupportedOptionSet Provides access to a set of supported options for a index.
ITaskQueueHandler The handler puts index management tasks into the task queue of the task queue service and reads index management tasks from the task queue to execute them.
IVirtualTaxImporter Interface to helper class to create a dynamic (virtual) taxonomy.
IWcmIndexConst Constants of the index management service Changes between major releases 7.0 and 7.X Deleted fields: ENABLE_RESOURCE_WRAPPER
 

Class Summary
AbstractIndex Generic index class, which must be extended by a specialized index implementation.
AbstractIndex.ErrorState  
AbstractIndex.IndexingState  
AbstractIndex.RunningState  
AbstractIndex.WhatToIndex  
AbstractIndexCollection Collection of indexes.
DefaultIMSecurityManager Implementing a subclass of this security manager enables the usage of a hidden index together with its own security manager used to check the accessibility of search results from the hidden index.
IndexFolder Folder that is attached to an index
IndexFolderIterator Iterator for an IIndexFolderList list
IndexFolderList List of index folders
IndexServiceEvent This event is send by the event mapper if another service send an event.
PortalServiceConnector Class used by a portal service providing a connector from lower build levels to the indexmanagement service.
SupportedOption Options supported by an index.
SupportedOptionSet A set of supported operations for a resource
TestIMSecurityManager Test class for testing the concept of a security manager for hidden indexes (never released).
 

Exception Summary
CommunicationException Indicates that the communication with another server failed because of an error.
IndexDoesNotExistOnServerException Indicates that an index doesnt exist on the index server.
IndexErrorContainerException Class for collecting indexing errors.
IndexInactiveException Indicates that the requested action can not be performed because of an inactive index.
IndexNotReadyException Indicates that the requested action can not be performed because of an busy index.
 

Package com.sapportals.wcm.service.indexmanagement Description

Provides a service for managing indexes.
Changes between major releases 7.0 and 7.X

Package Specification

Purpose
Configuration
Implementation Notes

Purpose

The index management service is used to manage and administer indexes. This is done in a generic way through the IIndexService (com.sapportals.wcm.service.indexmanagement.IIndexService) and IIndex (com.sapportals.wcm.service.indexmanagement.IIndex) interfaces. The actual functionality of an index is accessable through interfaces in sub packages. As an example the ISearchIndex interface (com.sapportals.wcm.service.indexmanagement.retieval.search.ISearchIndex) offers search functionality. Another important interface is the IClassificationIndex interface (com.sapportals.wcm.service.indexmanagement.retieval.classification.IClassificationIndex), which offers classification functionality. Every Index implementation has to implement one of the specialized interfaces (e.g. ISearchIndex) that extends the IIndex interface. The index management service itself only manages the indices so that they stay consistent to CM index management rules.

This has the following advantages:

Configuration

Index Management Service

The index management service can be configured with the parameters shown in the table.
The parameters can be set with the help of the user interface of the Content Management configuration framework.
For more information see the documentation Administering Content Management.

PropertyRequiredDescription
class yes The Java class of the index management service com.sapportals.wcm.service.indexmanagement.IIndexService.
singleton yes Indicates that service has only one instance. Note: Value must always be "true".
serviceuseryes The service user of the index management service has read access for every resource. It also has to be defined as a service user in the usermanagement configuration.
cl_taxonomyRmPrefixno The prefix of the taxonomy manager must only be defined when classification indexes will be managed by the index management service.
servicesyesList of ids of index sub services as described below.


The following shows a sample configuration:

Name Value
class com.sapportals.wcm.service.indexmanagement.IndexService
singleton true
serviceuser index_service
cl_taxonomyRmPrefix /taxonomies
services trexSearch, trexSearchAndClassification, trexClassification

Index Sub Services

The index sub services are implementations of the index interfaces. The following properties can be set for a service:

PropertyRequiredDescription
nameyes The id/name of the index sub service. It is used to identify an index sub service.
class yes The Java class of the index sub service. For example the "TrexSearchIndex".
displaynameyes The display name of the index sub service. It is displayed when creating an index to choose an index sub service.


The following shows a sample configuration:

Name Value
name trexSearch
class com.sapportals.wcm.service.indexmanagement.retrieval.trex.TrexSearchIndex
displayname Trex Search

Implementation notes

Service User

For indexing purposes you have to configure an service user named "index_service", which must have at least read access to all index relevant repositories.



Copyright 2014 SAP AG Complete Copyright Notice