Package org.apache.tika.eval.core.tokens
Class AlphaIdeographFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.TokenFilterFactory
org.apache.tika.eval.core.tokens.AlphaIdeographFilterFactory
public class AlphaIdeographFilterFactory
extends org.apache.lucene.analysis.util.TokenFilterFactory
Factory for filter that only allows tokens with characters that "isAlphabetic" or "isIdeographic" through.
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.TokenStream
create
(org.apache.lucene.analysis.TokenStream tokenStream) static boolean
isAlphabetic
(char[] token, int length) Methods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFilters
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
-
Constructor Details
-
AlphaIdeographFilterFactory
-
-
Method Details
-
isAlphabetic
public static boolean isAlphabetic(char[] token, int length) -
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream) - Specified by:
create
in classorg.apache.lucene.analysis.util.TokenFilterFactory
-