CLucene - a full-featured, c++ search engine
API Documentation
#include <Analyzers.h>
Public Member Functions | |
SimpleAnalyzer () | |
TokenStream * | tokenStream (const TCHAR *fieldName, lucene::util::Reader *reader) |
Creates a TokenStream which tokenizes all the text in the provided Reader. | |
virtual | ~SimpleAnalyzer () |
lucene::analysis::SimpleAnalyzer::SimpleAnalyzer | ( | ) |
virtual lucene::analysis::SimpleAnalyzer::~SimpleAnalyzer | ( | ) | [virtual] |
TokenStream* lucene::analysis::SimpleAnalyzer::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.