Package de.cxp.ocs.spi.indexer
Interface DocumentPostProcessor
public interface DocumentPostProcessor
Processor that is called after the document was transformed into a
IndexableItem, just right before it will be indexed.-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(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 Details
-
initialize
DocumentPostProcessor MUST have a default constructor. This method will be used to configure it afterwards.- Parameters:
fieldConfigIndex- field config indexsettings- a custom string-to-string map that can be configured per DocumentPostProcessor.
-
process
Called for each converted document. Changes to theDocumentwon't be considered anymore. Only changes to theIndexableItemare relevant.- Parameters:
originalDocument- source documentrecord- record that will be indexedfieldConfig- field config access
-