lumis.content.search
Class ContentIndexer

Package class diagram package ContentIndexer
java.lang.Object
  extended by lumis.doui.search.DouiIndexer
      extended by lumis.content.search.ContentIndexer
All Implemented Interfaces:
IContentIndexer, IDouiIndexer

public class ContentIndexer
extends DouiIndexer
implements IContentIndexer

Implements content indexing for the search engine.

Since:
4.2.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface lumis.doui.search.common.IDouiIndexer
IDouiIndexer.FieldType, IDouiIndexer.StatusFieldValues
 
Field Summary
 
Fields inherited from interface lumis.content.search.common.IContentIndexer
FIELDNAME_CONTENT_ID, FIELDNAME_LAST_MODIFIED_DATE_TIME, SERVICE_INSTANCE_IDS_ATTRIBUTE_NAME
 
Fields inherited from interface lumis.doui.search.common.IDouiIndexer
FIELDNAME_INTRODUCTION_IMAGE, FIELDNAME_LANGUAGE, FIELDNAME_LANGUAGE_ALL_VALUE, FIELDNAME_PORTALDATAPATH, FIELDNAME_PRINCIPAL, FIELDNAME_PUBLISH_START_DATE, FIELDNAME_SERVICEINSTANCEID, FIELDNAME_SERVICEINSTANCEID_DEFAULT_VALUE, FIELDNAME_SOURCE_SERVICEINSTANCEID, FIELDNAME_STATUS
 
Constructor Summary
ContentIndexer()
           
 
Method Summary
 DouiIndexConfig createDouiIndexConfig(Content content)
          Creates a default index configuration for the given content.
 void reindexContent(Content content, Collection<String> originalServiceInstanceIds, DouiIndexConfig douiIndexConfig)
          Performs the re-indexing of the given content.
 void removeContentFromIndex(Content content, Collection<String> originalServiceInstanceIds, DouiIndexConfig douiIndexConfig)
          Removes the given content from the search index.
 
Methods inherited from class lumis.doui.search.DouiIndexer
addSearchContent, getIndexer, indexServiceInstance, indexServiceInstance, removeSearchContents, removeSearchContents, removeSearchContentsByServiceInstanceId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentIndexer

public ContentIndexer()
Method Detail

removeContentFromIndex

public void removeContentFromIndex(Content content,
                                   Collection<String> originalServiceInstanceIds,
                                   DouiIndexConfig douiIndexConfig)
                            throws PortalException
Description copied from interface: IContentIndexer
Removes the given content from the search index.

Specified by:
removeContentFromIndex in interface IContentIndexer
Parameters:
content - the content.
originalServiceInstanceIds - the identifiers of the service instances whose indices the content will be removed from.
douiIndexConfig - indexing configuration.
Throws:
PortalException

reindexContent

public void reindexContent(Content content,
                           Collection<String> originalServiceInstanceIds,
                           DouiIndexConfig douiIndexConfig)
                    throws PortalException
Description copied from interface: IContentIndexer
Performs the re-indexing of the given content.

Specified by:
reindexContent in interface IContentIndexer
Parameters:
content - the content.
originalServiceInstanceIds - the identifiers of the service instances whose indices the content will be removed from.
douiIndexConfig - indexing configuration.
Throws:
PortalException

createDouiIndexConfig

public DouiIndexConfig createDouiIndexConfig(Content content)
                                      throws PortalException
Description copied from interface: IContentIndexer
Creates a default index configuration for the given content.

Specified by:
createDouiIndexConfig in interface IContentIndexer
Parameters:
content - the content.
Returns:
the index configuration.
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.