Package org.opensearch.analysis.common
Class PatternReplaceCharFilterFactory
java.lang.Object
org.opensearch.index.AbstractIndexComponent
org.opensearch.index.analysis.AbstractCharFilterFactory
org.opensearch.analysis.common.PatternReplaceCharFilterFactory
- All Implemented Interfaces:
CharFilterFactory,NormalizingCharFilterFactory,IndexComponent
public class PatternReplaceCharFilterFactory extends AbstractCharFilterFactory implements NormalizingCharFilterFactory
-
Field Summary
Fields inherited from class org.opensearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger -
Method Summary
Modifier and Type Method Description java.io.Readercreate(java.io.Reader tokenStream)java.util.regex.PatterngetPattern()java.lang.StringgetReplacement()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.index.analysis.NormalizingCharFilterFactory
normalize
-
Method Details
-
getPattern
public java.util.regex.Pattern getPattern() -
getReplacement
public java.lang.String getReplacement() -
create
public java.io.Reader create(java.io.Reader tokenStream)- Specified by:
createin interfaceCharFilterFactory
-