Package de.cxp.ocs.spi.indexer
Interface DocumentPostProcessor
-
public interface DocumentPostProcessorProcessor that is called after the document was transformed into aIndexableItem, just right before it will be indexed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(FieldConfigAccess fieldConfigIndex, Map<String,String> settings)DocumentPostProcessor MUST have a default constructor.voidprocess(Document originalDocument, IndexableItem record, FieldConfigAccess fieldConfig)Called for each converted document.
-
-
-
Method Detail
-
initialize
void initialize(FieldConfigAccess fieldConfigIndex, Map<String,String> settings)
DocumentPostProcessor MUST have a default constructor. This method will be used to configure it afterwards.- Parameters:
fieldConfigIndex-settings- a custom string-to-string map that can be configured per DocumentPostProcessor.
-
process
void process(Document originalDocument, IndexableItem record, FieldConfigAccess fieldConfig)
Called for each converted document. Changes to theDocumentwon't be considered anymore. Only changes to theIndexableItemare relevant.- Parameters:
originalDocument-record-fieldConfig-
-
-