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 TypeMethodDescriptionvoid
initialize
(FieldConfigAccess fieldConfigIndex, Map<String, String> settings) DocumentPostProcessor MUST have a default constructor.void
process
(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 theDocument
won't be considered anymore. Only changes to theIndexableItem
are relevant.- Parameters:
originalDocument
- source documentrecord
- record that will be indexedfieldConfig
- field config access
-