Save This Page
Home » lucene-2.4.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
Filters LetterTokenizer with LowerCaseFilter and StopFilter.
Field Summary
public static final  String[] ENGLISH_STOP_WORDS    An array containing some common English words that are not usually useful for searching. 
Constructor:
 public StopAnalyzer() 
 public StopAnalyzer(Set stopWords) 
    Builds an analyzer with the stop words from the given set.
 public StopAnalyzer(String[] stopWords) 
    Builds an analyzer which removes words in the provided array.
 public StopAnalyzer(File stopwordsFile) throws IOException 
    Builds an analyzer with the stop words from the given file.
    Also see:
    WordlistLoader#getWordSet(File)
 public StopAnalyzer(Reader stopwords) throws IOException 
    Builds an analyzer with the stop words from the given reader.
    Also see:
    WordlistLoader#getWordSet(Reader)
Method from org.apache.lucene.analysis.StopAnalyzer Summary:
reusableTokenStream,   tokenStream
Methods from org.apache.lucene.analysis.Analyzer:
close,   getPositionIncrementGap,   getPreviousTokenStream,   reusableTokenStream,   setPreviousTokenStream,   tokenStream
Methods from java.lang.Object:
equals,   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.