Package de.cxp.ocs.preprocessor.impl
Class AsciiFoldingDataProcessor
- java.lang.Object
-
- de.cxp.ocs.preprocessor.impl.AsciiFoldingDataProcessor
-
- All Implemented Interfaces:
DocumentPreProcessor
public class AsciiFoldingDataProcessor extends Object implements 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 Constructor Description AsciiFoldingDataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(FieldConfigAccess fieldConfig, Map<String,String> preProcessorConfig)DataPreProcessor MUST have a no-args constructor.booleanprocess(Document sourceDocument, boolean visible)Called for each source document.
-
-
-
Method Detail
-
initialize
public void initialize(FieldConfigAccess fieldConfig, Map<String,String> preProcessorConfig)
Description copied from interface:DocumentPreProcessorDataPreProcessor MUST have a no-args constructor. To configure it afterwards, this method will be used.- Specified by:
initializein interfaceDocumentPreProcessorpreProcessorConfig- custom string-to-string map that can be configured per DocumentPreProcessor.
-
process
public boolean process(Document sourceDocument, 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.
-
-