Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » analysis » [javadoc | source]
org.apache.lucene.analysis
public final class: StopAnalyzer [javadoc | source]
java.lang.Object
   org.apache.lucene.analysis.Analyzer
      org.apache.lucene.analysis.StopAnalyzer

All Implemented Interfaces:
    Closeable

Filters LetterTokenizer with LowerCaseFilter and StopFilter .

You must specify the required Version compatibility when creating StopAnalyzer:

Field Summary
public static final  Set<?> ENGLISH_STOP_WORDS_SET    An unmodifiable set containing some common English words that are not usually useful for searching. 
Fields inherited from org.apache.lucene.analysis.Analyzer:
overridesTokenStreamMethod
Constructor:
 public StopAnalyzer(Version matchVersion) 
    Parameters:
    matchVersion - See above
 public StopAnalyzer(Version matchVersion,
    Set<?> stopWords) 
    Builds an analyzer with the stop words from the given set.
    Parameters:
    matchVersion - See above
    stopWords - Set of stop words
 public StopAnalyzer(Version matchVersion,
    File stopwordsFile) throws IOException 
    Builds an analyzer with the stop words from the given file.
    Parameters:
    matchVersion - See above
    stopwordsFile - File to load stop words from
    Also see:
    WordlistLoader#getWordSet(File)
 public StopAnalyzer(Version matchVersion,
    Reader stopwords) throws IOException 
    Builds an analyzer with the stop words from the given reader.
    Parameters:
    matchVersion - See above
    stopwords - Reader to load stop words from
    Also see:
    WordlistLoader#getWordSet(Reader)
Method from org.apache.lucene.analysis.StopAnalyzer Summary:
reusableTokenStream,   tokenStream
Methods from org.apache.lucene.analysis.Analyzer:
close,   getOffsetGap,   getPositionIncrementGap,   getPreviousTokenStream,   reusableTokenStream,   setOverridesTokenStreamMethod,   setPreviousTokenStream,   tokenStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.StopAnalyzer Detail:
 public TokenStream reusableTokenStream(String fieldName,
    Reader reader) throws IOException 
 public TokenStream tokenStream(String fieldName,
    Reader reader) 
    Filters LowerCaseTokenizer with StopFilter.