Package de.cxp.ocs.preprocessor.impl
Class SkipDocumentDataProcessor
- java.lang.Object
-
- de.cxp.ocs.preprocessor.impl.SkipDocumentDataProcessor
-
- All Implemented Interfaces:
DocumentPreProcessor
public class SkipDocumentDataProcessor extends Object implements DocumentPreProcessor
ConfigureableDataprocessorimplementation which will make the indexer skip the indexation of matching documents.data-processor-configuration: processors: - SkipDocumentDataProcessor configuration: SkipDocumentDataProcessor: type: "[Cc]ontent"This would skip all documents where the field "type" matches "[Cc]ontent".
-
-
Constructor Summary
Constructors Constructor Description SkipDocumentDataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(FieldConfigAccess fieldConfig, Map<String,String> confMap)DataPreProcessor MUST have a no-args constructor.booleanprocess(Document doc, boolean visible)Called for each source document.
-
-
-
Method Detail
-
initialize
public void initialize(FieldConfigAccess fieldConfig, Map<String,String> confMap)
Description copied from interface:DocumentPreProcessorDataPreProcessor MUST have a no-args constructor. To configure it afterwards, this method will be used.- Specified by:
initializein interfaceDocumentPreProcessorconfMap- custom string-to-string map that can be configured per DocumentPreProcessor.
-
process
public boolean process(Document doc, boolean visible)
Description copied from interface:DocumentPreProcessorCalled for each source document.- Specified by:
processin interfaceDocumentPreProcessorvisible- weather or not the record is currently marked for indexing.- Returns:
trueif the record should be indexed,falseotherwise.
-
-