Package de.cxp.ocs.preprocessor.impl
Class SkipDocumentDataProcessor
java.lang.Object
de.cxp.ocs.preprocessor.impl.SkipDocumentDataProcessor
- All Implemented Interfaces:
DocumentPreProcessor
ConfigureableDataprocessor implementation 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(FieldConfigAccess fieldConfig, Map<String, String> confMap) DataPreProcessor MUST have a no-args constructor.booleanCalled for each source document.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.cxp.ocs.spi.indexer.DocumentPreProcessor
finish
-
Constructor Details
-
SkipDocumentDataProcessor
public SkipDocumentDataProcessor()
-
-
Method Details
-
initialize
Description copied from interface:DocumentPreProcessorDataPreProcessor MUST have a no-args constructor. To configure it afterwards, this method will be used.- Specified by:
initializein interfaceDocumentPreProcessor- Parameters:
fieldConfig- field config accessconfMap- custom string-to-string map that can be configured per DocumentPreProcessor.
-
process
Description copied from interface:DocumentPreProcessorCalled for each source document.- Specified by:
processin interfaceDocumentPreProcessor- Parameters:
doc- source documentvisible- weather or not the record is currently marked for indexing.- Returns:
trueif the record should be indexed,falseotherwise.
-