public final class Analyzer_cz extends DefaultAnalyzer
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ANALYZER_TYPE |
static java.lang.String[] |
DEFAULT_STOP_WORDS
List of typical stopwords.
|
ATTRIBUTE_EXCLUDE_STEMS, ATTRIBUTE_USE_STOP_WORDS, EXCLUDE_STEM_ELEMENT, EXCLUDE_STEMS_ELEMENT, excludeTable, stopTable
logger
Constructor and Description |
---|
Analyzer_cz()
Builds an analyzer.
|
Analyzer_cz(java.io.File stopwords)
Builds an analyzer with the given stop words.
|
Analyzer_cz(java.util.Set stopwords)
Builds an analyzer with the given stop words.
|
Analyzer_cz(java.lang.String[] stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAnalyzerType() |
void |
loadStopWords(java.io.InputStream wordfile,
java.lang.String encoding)
Loads stopwords hash from resource stream (file, database...).
|
org.apache.lucene.analysis.TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader.
|
buildExcludeTable, buildStopTable, configure, getDefaultStopWords, tokenStream
enableLogging, toSAX
protected static final java.lang.String ANALYZER_TYPE
public static final java.lang.String[] DEFAULT_STOP_WORDS
public Analyzer_cz()
public Analyzer_cz(java.lang.String[] stopwords)
stopwords
- public Analyzer_cz(java.util.Set stopwords)
stopwords
- public Analyzer_cz(java.io.File stopwords) throws java.io.IOException
stopwords
- java.io.IOException
protected java.lang.String getAnalyzerType()
getAnalyzerType
in class DefaultAnalyzer
fr.gouv.culture.sdx.search.lucene.analysis.AbstractAnalyzer#getAnalyserType()
public void loadStopWords(java.io.InputStream wordfile, java.lang.String encoding)
wordfile
- File containing the wordlistencoding
- Encoding used (win-1250, iso-8859-2, ...}, null for default system encodingpublic final org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in interface Analyzer
tokenStream
in class DefaultAnalyzer
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.