|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.Analyzer org.apache.lucene.analysis.cz.CzechAnalyzer
public final class CzechAnalyzer
Analyzer
for Czech language.
Supports an external list of stopwords (words that will not be indexed at all). A default set of stopwords is used unless an alternative list is specified.
NOTE: This class uses the same Version
dependent settings as StandardAnalyzer
.
Field Summary | |
---|---|
static String[] |
CZECH_STOP_WORDS
List of typical stopwords. |
Fields inherited from class org.apache.lucene.analysis.Analyzer |
---|
overridesTokenStreamMethod |
Constructor Summary | |
---|---|
CzechAnalyzer()
Deprecated. Use CzechAnalyzer(Version) instead |
|
CzechAnalyzer(File stopwords)
Deprecated. Use CzechAnalyzer(Version, File) instead |
|
CzechAnalyzer(HashSet stopwords)
Deprecated. Use CzechAnalyzer(Version, HashSet) instead |
|
CzechAnalyzer(String[] stopwords)
Deprecated. Use CzechAnalyzer(Version, String[]) instead |
|
CzechAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer with the default stop words ( CZECH_STOP_WORDS ). |
|
CzechAnalyzer(org.apache.lucene.util.Version matchVersion,
File stopwords)
Builds an analyzer with the given stop words. |
|
CzechAnalyzer(org.apache.lucene.util.Version matchVersion,
HashSet stopwords)
|
|
CzechAnalyzer(org.apache.lucene.util.Version matchVersion,
String[] stopwords)
Builds an analyzer with the given stop words. |
Method Summary | |
---|---|
void |
loadStopWords(InputStream wordfile,
String encoding)
Loads stopwords hash from resource stream (file, database...). |
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader)
Returns a (possibly reused) TokenStream which tokenizes all the text in
the provided Reader . |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader . |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] CZECH_STOP_WORDS
Constructor Detail |
---|
public CzechAnalyzer()
CzechAnalyzer(Version)
instead
CZECH_STOP_WORDS
).
public CzechAnalyzer(org.apache.lucene.util.Version matchVersion)
CZECH_STOP_WORDS
).
public CzechAnalyzer(String[] stopwords)
CzechAnalyzer(Version, String[])
instead
public CzechAnalyzer(org.apache.lucene.util.Version matchVersion, String[] stopwords)
public CzechAnalyzer(HashSet stopwords)
CzechAnalyzer(Version, HashSet)
instead
public CzechAnalyzer(org.apache.lucene.util.Version matchVersion, HashSet stopwords)
public CzechAnalyzer(File stopwords) throws IOException
CzechAnalyzer(Version, File)
instead
IOException
public CzechAnalyzer(org.apache.lucene.util.Version matchVersion, File stopwords) throws IOException
IOException
Method Detail |
---|
public void loadStopWords(InputStream wordfile, 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(String fieldName, Reader reader)
TokenStream
which tokenizes all the text in the provided Reader
.
tokenStream
in class org.apache.lucene.analysis.Analyzer
TokenStream
built from a StandardTokenizer
filtered with
StandardFilter
, LowerCaseFilter
, and StopFilter
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
TokenStream
which tokenizes all the text in
the provided Reader
.
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
TokenStream
built from a StandardTokenizer
filtered with
StandardFilter
, LowerCaseFilter
, and StopFilter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |