|
||||||||||
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.el.GreekAnalyzer
public final class GreekAnalyzer
Analyzer
for the Greek 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 |
---|
Fields inherited from class org.apache.lucene.analysis.Analyzer |
---|
overridesTokenStreamMethod |
Constructor Summary | |
---|---|
GreekAnalyzer(Version matchVersion)
|
|
GreekAnalyzer(Version matchVersion,
Map<?,?> stopwords)
Deprecated. use GreekAnalyzer(Version, Set) instead |
|
GreekAnalyzer(Version matchVersion,
Set<?> stopwords)
Builds an analyzer with the given stop words |
|
GreekAnalyzer(Version matchVersion,
String... stopwords)
Deprecated. use GreekAnalyzer(Version, Set) instead |
Method Summary | |
---|---|
static Set<?> |
getDefaultStopSet()
Returns a set of default Greek-stopwords |
TokenStream |
reusableTokenStream(String fieldName,
Reader reader)
Returns a (possibly reused) TokenStream which tokenizes all the text
in the provided Reader . |
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 |
Constructor Detail |
---|
public GreekAnalyzer(Version matchVersion)
public GreekAnalyzer(Version matchVersion, Set<?> stopwords)
matchVersion
- lucene compatibility versionstopwords
- a stopword setpublic GreekAnalyzer(Version matchVersion, String... stopwords)
GreekAnalyzer(Version, Set)
instead
stopwords
- Array of stopwords to use.public GreekAnalyzer(Version matchVersion, Map<?,?> stopwords)
GreekAnalyzer(Version, Set)
instead
Method Detail |
---|
public static final Set<?> getDefaultStopSet()
public TokenStream tokenStream(String fieldName, Reader reader)
TokenStream
which tokenizes all the text in the provided Reader
.
tokenStream
in class Analyzer
TokenStream
built from a StandardTokenizer
filtered with
GreekLowerCaseFilter
and StopFilter
public TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
TokenStream
which tokenizes all the text
in the provided Reader
.
reusableTokenStream
in class Analyzer
TokenStream
built from a StandardTokenizer
filtered with
GreekLowerCaseFilter
and StopFilter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |