Interface DocumentPreProcessor

    • 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:
        true if the record should be indexed, false otherwise.