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


lucene::analysis::LengthFilter Class Reference

Removes words that are too long and too short from the stream. More...

#include <Analyzers.h>

Inheritance diagram for lucene::analysis::LengthFilter:

lucene::analysis::TokenFilter lucene::analysis::TokenStream

Public Member Functions

 LengthFilter (TokenStream *in, const size_t _min, const size_t _max)
 Build a filter that removes words that are too long or too short from the text.
bool next (Token *token)
 Returns the next input Token whose termText() is the right len.

Detailed Description

Removes words that are too long and too short from the stream.

Constructor & Destructor Documentation

lucene::analysis::LengthFilter::LengthFilter ( TokenStream in,
const size_t  _min,
const size_t  _max 
)

Build a filter that removes words that are too long or too short from the text.


Member Function Documentation

bool lucene::analysis::LengthFilter::next ( Token token  )  [virtual]

Returns the next input Token whose termText() is the right len.

Implements lucene::analysis::TokenStream.


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

clucene.sourceforge.net