CLucene - a full-featured, c++ search engine
API Documentation


lucene::analysis::StopAnalyzer Class Reference

Filters LetterTokenizer with LowerCaseFilter and StopFilter. More...

#include <Analyzers.h>

Inheritance diagram for lucene::analysis::StopAnalyzer:

lucene::analysis::Analyzer

Public Member Functions

 StopAnalyzer ()
 Builds an analyzer which removes words in ENGLISH_STOP_WORDS.
virtual ~StopAnalyzer ()
 StopAnalyzer (const TCHAR **stopWords)
 Builds an analyzer which removes words in the provided array.
 StopAnalyzer (const char *stopwordsFile, const char *enc=NULL)
 Builds an analyzer with the stop words from the given file.
 StopAnalyzer (lucene::util::Reader *stopwordsReader, const bool _bDeleteReader=false)
 Builds an analyzer with the stop words from the given reader.
TokenStreamtokenStream (const TCHAR *fieldName, lucene::util::Reader *reader)
 Filters LowerCaseTokenizer with StopFilter.

Static Public Attributes

static const TCHAR * ENGLISH_STOP_WORDS []
 An array containing some common English words that are not usually useful for searching.

Detailed Description

Filters LetterTokenizer with LowerCaseFilter and StopFilter.


Constructor & Destructor Documentation

lucene::analysis::StopAnalyzer::StopAnalyzer (  ) 

Builds an analyzer which removes words in ENGLISH_STOP_WORDS.

virtual lucene::analysis::StopAnalyzer::~StopAnalyzer (  )  [virtual]

lucene::analysis::StopAnalyzer::StopAnalyzer ( const TCHAR **  stopWords  ) 

Builds an analyzer which removes words in the provided array.

lucene::analysis::StopAnalyzer::StopAnalyzer ( const char *  stopwordsFile,
const char *  enc = NULL 
)

Builds an analyzer with the stop words from the given file.

See also:
WordlistLoader::getWordSet(File)

lucene::analysis::StopAnalyzer::StopAnalyzer ( lucene::util::Reader stopwordsReader,
const bool  _bDeleteReader = false 
)

Builds an analyzer with the stop words from the given reader.

See also:
WordlistLoader::getWordSet(Reader)


Member Function Documentation

TokenStream* lucene::analysis::StopAnalyzer::tokenStream ( const TCHAR *  fieldName,
lucene::util::Reader reader 
) [virtual]


Field Documentation

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


The documentation for this class was generated from the following file:

clucene.sourceforge.net