Class WordSplitterDataProcessor

java.lang.Object
de.cxp.ocs.preprocessor.impl.WordSplitterDataProcessor
All Implemented Interfaces:
DocumentPreProcessor

public class WordSplitterDataProcessor extends Object implements DocumentPreProcessor
Summarize and normalize fields depending on configuration
Author:
gabriel.bauer
  • Constructor Details

    • WordSplitterDataProcessor

      public WordSplitterDataProcessor()
  • Method Details

    • initialize

      public void initialize(FieldConfigAccess fieldConfig, Map<String,String> confMap)
      Description copied from interface: DocumentPreProcessor
      DataPreProcessor MUST have a no-args constructor. To configure it afterwards, this method will be used.
      Specified by:
      initialize in interface DocumentPreProcessor
      Parameters:
      fieldConfig - field config access
      confMap - custom string-to-string map that can be configured per DocumentPreProcessor.
    • process

      public boolean process(Document sourceDocument, boolean visible)
      Description copied from interface: DocumentPreProcessor
      Called for each source document.
      Specified by:
      process in interface DocumentPreProcessor
      Parameters:
      sourceDocument - source document
      visible - weather or not the record is currently marked for indexing.
      Returns:
      true if the record should be indexed, false otherwise.