Package de.cxp.ocs.spi.indexer
Interface DocumentPreProcessor
-
- All Known Implementing Classes:
AsciiFoldingDataProcessor,ConfigureableDataprocessor,ExtractCategoryLevelDataProcessor,FlagFieldDataProcessor,RemoveFieldContentDelimiterProcessor,RemoveValuesDataProcessor,ReplacePatternInValuesDataProcessor,SkipDocumentDataProcessor,SplitValueDataProcessor,WordSplitterDataProcessor
public interface DocumentPreProcessorDocumentPreProcessorimplementations can be used to alter product data before they get transformed intoIndexableItems. Several implementations can be configured to run one after another, where each processor get's the manipulated record value of the former processor.- Author:
- hjk, rb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(FieldConfigAccess fieldConfig, Map<String,String> preProcessorConfig)DataPreProcessor MUST have a no-args constructor.booleanprocess(Document sourceDocument, boolean visible)Called for each source document.
-
-
-
Method Detail
-
initialize
void initialize(FieldConfigAccess fieldConfig, Map<String,String> preProcessorConfig)
DataPreProcessor MUST have a no-args constructor. To configure it afterwards, this method will be used.- Parameters:
fieldConfig-preProcessorConfig- custom string-to-string map that can be configured per DocumentPreProcessor.
-
process
boolean process(Document sourceDocument, boolean visible)
Called for each source document.- Parameters:
sourceDocument-visible- weather or not the record is currently marked for indexing.- Returns:
trueif the record should be indexed,falseotherwise.
-
-