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 Details

    • 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 - field config index
      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 the Document won't be considered anymore. Only changes to the IndexableItem are relevant.
      Parameters:
      originalDocument - source document
      record - record that will be indexed
      fieldConfig - field config access