org.apache.lucene.analysis.el
Class GreekAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.el.GreekAnalyzer

public final class GreekAnalyzer
extends Analyzer

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.


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
GreekAnalyzer()
           
GreekAnalyzer(char[] charset)
          Deprecated. Use GreekAnalyzer() instead.
GreekAnalyzer(char[] charset, Map stopwords)
          Deprecated. Use GreekAnalyzer(Map) instead.
GreekAnalyzer(char[] charset, String[] stopwords)
          Deprecated. Use GreekAnalyzer(String[]) instead.
GreekAnalyzer(Map stopwords)
          Builds an analyzer with the given stop words.
GreekAnalyzer(String[] stopwords)
          Builds an analyzer with the given stop words.
 
Method Summary
 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

GreekAnalyzer

public GreekAnalyzer()

GreekAnalyzer

public GreekAnalyzer(char[] charset)
Deprecated. Use GreekAnalyzer() instead.

Builds an analyzer.


GreekAnalyzer

public GreekAnalyzer(String[] stopwords)
Builds an analyzer with the given stop words.

Parameters:
stopwords - Array of stopwords to use.

GreekAnalyzer

public GreekAnalyzer(char[] charset,
                     String[] stopwords)
Deprecated. Use GreekAnalyzer(String[]) instead.

Builds an analyzer with the given stop words.


GreekAnalyzer

public GreekAnalyzer(char[] charset,
                     Map stopwords)
Deprecated. Use GreekAnalyzer(Map) instead.

Builds an analyzer with the given stop words.


GreekAnalyzer

public GreekAnalyzer(Map stopwords)
Builds an analyzer with the given stop words.

Method Detail

tokenStream

public TokenStream tokenStream(String fieldName,
                               Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader.

Specified by:
tokenStream in class Analyzer
Returns:
A TokenStream built from a StandardTokenizer filtered with GreekLowerCaseFilter and StopFilter

reusableTokenStream

public TokenStream reusableTokenStream(String fieldName,
                                       Reader reader)
                                throws IOException
Returns a (possibly reused) TokenStream which tokenizes all the text in the provided Reader.

Overrides:
reusableTokenStream in class Analyzer
Returns:
A TokenStream built from a StandardTokenizer filtered with GreekLowerCaseFilter and StopFilter
Throws:
IOException


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.