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


lucene::analysis::WhitespaceAnalyzer Class Reference

An Analyzer that uses WhitespaceTokenizer. More...

#include <Analyzers.h>

Inheritance diagram for lucene::analysis::WhitespaceAnalyzer:

lucene::analysis::Analyzer

Public Member Functions

 WhitespaceAnalyzer ()
TokenStreamtokenStream (const TCHAR *fieldName, lucene::util::Reader *reader)
 Creates a TokenStream which tokenizes all the text in the provided Reader.
virtual ~WhitespaceAnalyzer ()

Detailed Description

An Analyzer that uses WhitespaceTokenizer.


Constructor & Destructor Documentation

lucene::analysis::WhitespaceAnalyzer::WhitespaceAnalyzer (  ) 

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


Member Function Documentation

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

Creates a TokenStream which tokenizes all the text in the provided Reader.

Default implementation forwards to tokenStream(Reader) for compatibility with older version. Override to allow Analyzer to choose strategy based on document and/or field. Must be able to handle null field name for backward compatibility.

Implements lucene::analysis::Analyzer.


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

clucene.sourceforge.net