Documentation  › org.apache.lucene.analysis  › StopAnalyzer
 
 


  StopAnalyzer
  public final

  Inherits From:   Analyzer : Object
  Conforms To:   none
  Declared In:   org.apache.lucene.analysis


Class Description
 
Filters LetterTokenizer with LowerCaseFilter and StopFilter.


Class Variables
 
ENGLISH_STOP_WORDS
public static final String[]

An array containing some common English words that are not usually useful for searching.


Instance Variables
 
None declared in this class.


Constructors
 
StopAnalyzer
public StopAnalyzer( )

Builds an analyzer which removes words in ENGLISH_STOP_WORDS.


StopAnalyzer
public StopAnalyzer( String[] stopWords )

Builds an analyzer which removes words in the provided array.


Class Methods
 
None declared in this class.


Instance Methods
 
tokenStream
public TokenStream tokenStream( String fieldName, Reader reader )

Filters LowerCaseTokenizer with StopFilter.


Known Subclasses
 
None.



 
 
  dydoc
  3/9/05