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


lucene::analysis::KeywordAnalyzer Class Reference

"Tokenizes" the entire stream as a single token. More...

#include <Analyzers.h>

Inheritance diagram for lucene::analysis::KeywordAnalyzer:

lucene::analysis::Analyzer

Public Member Functions

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

Detailed Description

"Tokenizes" the entire stream as a single token.

This is useful for data like zip codes, ids, and some product names.


Constructor & Destructor Documentation

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


Member Function Documentation

TokenStream* lucene::analysis::KeywordAnalyzer::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