@StableMinor(version="7.1", sinceVersion="4.0") public abstract class Indexer extends Processor
definitionNode, searchEngineId
Constructor and Description |
---|
Indexer(Node definitionNode)
Constructs an Indexer object, configured by the given definition
node . |
Modifier and Type | Method and Description |
---|---|
abstract void |
addSearchContent(SearchContent searchContent)
Adds a
content to the index. |
void |
mergeSearchContent(SearchContent searchContent)
Deprecated.
Since 4.2.2 this method is no longer
supported since most search engines do not offer such operation.
Uses of this method must be adapted to use other methods of this
interface. This method now throws
UnsupportedOperationException
and is being kept only for binary compatibility. It will be removed
in a future version. |
abstract void |
removeSearchContent(Collection<SearchContent> searchContents)
Removes a
content collection from the index, using each
content 's identifier field
as selection criteria. |
abstract void |
removeSearchContent(SearchContent searchContent)
|
abstract void |
removeSearchContent(SearchContent searchContent,
String selectionFieldName)
|
getConfigNode, getConfigNodes
public Indexer(Node definitionNode) throws PortalException
node
.definitionNode
- indexer definition node
.PortalException
public abstract void addSearchContent(SearchContent searchContent) throws PortalException
content
to the index.searchContent
- the content
to be added.PortalException
@Deprecated public void mergeSearchContent(SearchContent searchContent) throws PortalException
UnsupportedOperationException
and is being kept only for binary compatibility. It will be removed
in a future version.content
in the index. The update will be done in one of the two following ways:
searchContent
- the content
to be updated.PortalException
public abstract void removeSearchContent(SearchContent searchContent) throws PortalException
searchContent
- the content
to be removed.PortalException
public abstract void removeSearchContent(SearchContent searchContent, String selectionFieldName) throws PortalException
searchContent
- the content
to be removed.selectionFieldName
- field to be used as selection criteriaPortalException
public abstract void removeSearchContent(Collection<SearchContent> searchContents) throws PortalException
content
collection from the index, using each
content
's identifier field
as selection criteria.searchContents
- the content
s to be removed.PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.