|
||||||||||
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.de.GermanAnalyzer
public class GermanAnalyzer
Analyzer
for German language.
Supports an external list of stopwords (words that will not be indexed at all) and an external list of exclusions (word that will not be stemmed, but indexed). A default set of stopwords is used unless an alternative list is specified, but the exclusion list is empty by default.
NOTE: This class uses the same Version
dependent settings as StandardAnalyzer
.
Field Summary | |
---|---|
static String[] |
GERMAN_STOP_WORDS
List of typical german stopwords. |
Fields inherited from class org.apache.lucene.analysis.Analyzer |
---|
overridesTokenStreamMethod |
Constructor Summary | |
---|---|
GermanAnalyzer()
Deprecated. Use GermanAnalyzer(Version) instead |
|
GermanAnalyzer(File stopwords)
Deprecated. Use GermanAnalyzer(Version, File) instead |
|
GermanAnalyzer(Map stopwords)
Deprecated. Use GermanAnalyzer(Version, Map) instead |
|
GermanAnalyzer(String[] stopwords)
Deprecated. Use GermanAnalyzer(Version, String[]) instead |
|
GermanAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer with the default stop words: GERMAN_STOP_WORDS . |
|
GermanAnalyzer(org.apache.lucene.util.Version matchVersion,
File stopwords)
Builds an analyzer with the given stop words. |
|
GermanAnalyzer(org.apache.lucene.util.Version matchVersion,
Map stopwords)
Builds an analyzer with the given stop words. |
|
GermanAnalyzer(org.apache.lucene.util.Version matchVersion,
String[] stopwords)
Builds an analyzer with the given stop words. |
Method Summary | |
---|---|
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader)
Returns a (possibly reused) TokenStream which tokenizes all the text
in the provided Reader . |
void |
setStemExclusionTable(File exclusionlist)
Builds an exclusionlist from the words contained in the given file. |
void |
setStemExclusionTable(Map exclusionlist)
Builds an exclusionlist from a Map |
void |
setStemExclusionTable(String[] exclusionlist)
Builds an exclusionlist from an array of Strings. |
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[] GERMAN_STOP_WORDS
Constructor Detail |
---|
public GermanAnalyzer()
GermanAnalyzer(Version)
instead
GERMAN_STOP_WORDS
.
public GermanAnalyzer(org.apache.lucene.util.Version matchVersion)
GERMAN_STOP_WORDS
.
public GermanAnalyzer(String[] stopwords)
GermanAnalyzer(Version, String[])
instead
public GermanAnalyzer(org.apache.lucene.util.Version matchVersion, String[] stopwords)
public GermanAnalyzer(Map stopwords)
GermanAnalyzer(Version, Map)
instead
public GermanAnalyzer(org.apache.lucene.util.Version matchVersion, Map stopwords)
public GermanAnalyzer(File stopwords) throws IOException
GermanAnalyzer(Version, File)
instead
IOException
public GermanAnalyzer(org.apache.lucene.util.Version matchVersion, File stopwords) throws IOException
IOException
Method Detail |
---|
public void setStemExclusionTable(String[] exclusionlist)
public void setStemExclusionTable(Map exclusionlist)
Map
public void setStemExclusionTable(File exclusionlist) throws IOException
IOException
public 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
, StopFilter
, and
GermanStemFilter
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
, StopFilter
, and
GermanStemFilter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |