Package de.cxp.ocs.preprocessor.impl
Class AsciiFoldingDataProcessor
java.lang.Object
de.cxp.ocs.preprocessor.impl.AsciiFoldingDataProcessor
- All Implemented Interfaces:
DocumentPreProcessor
Converts alphabetic, numeric, and symbolic Unicode characters which are not
in the first 127 ASCII characters (the "Basic Latin" Unicode block) into
their ASCII equivalents, if one exists for every searchable field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(FieldConfigAccess fieldConfig, Map<String, String> preProcessorConfig) DataPreProcessor MUST have a no-args constructor.boolean
Called for each source document.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.cxp.ocs.spi.indexer.DocumentPreProcessor
finish
-
Constructor Details
-
AsciiFoldingDataProcessor
public AsciiFoldingDataProcessor()
-
-
Method Details
-
initialize
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 interfaceDocumentPreProcessor
- Parameters:
fieldConfig
- field config accesspreProcessorConfig
- custom string-to-string map that can be configured per DocumentPreProcessor.
-
process
Description copied from interface:DocumentPreProcessor
Called for each source document.- Specified by:
process
in interfaceDocumentPreProcessor
- Parameters:
sourceDocument
- source documentvisible
- weather or not the record is currently marked for indexing.- Returns:
true
if the record should be indexed,false
otherwise.
-