com.lucene.analysis.standard
Class StandardAnalyzer

java.lang.Object
  |
  +--com.lucene.analysis.Analyzer
        |
        +--com.lucene.analysis.standard.StandardAnalyzer

public final class StandardAnalyzer
extends Analyzer

Filters StandardTokenizer with StandardFilter, LowerCaseFilter and StopFilter.


Field Summary
static String[] STOP_WORDS
          An array containing some common English words that are not usually useful for searching.
 
Constructor Summary
StandardAnalyzer()
          Builds an analyzer.
StandardAnalyzer(String[] stopWords)
          Builds an analyzer with the given stop words.
 
Method Summary
 TokenStream tokenStream(Reader reader)
          Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOP_WORDS

public static final String[] STOP_WORDS
An array containing some common English words that are not usually useful for searching.
Constructor Detail

StandardAnalyzer

public StandardAnalyzer()
Builds an analyzer.

StandardAnalyzer

public StandardAnalyzer(String[] stopWords)
Builds an analyzer with the given stop words.
Method Detail

tokenStream

public final TokenStream tokenStream(Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.
Overrides:
tokenStream in class Analyzer