CLucene - a full-featured, c++ search engine
API Documentation
Removes words that are too long and too short from the stream. More...
#include <Analyzers.h>
Public Member Functions | |
| LengthFilter (TokenStream *in, int _min, int _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. | |
Removes words that are too long and too short from the stream.
| lucene::analysis::LengthFilter::LengthFilter | ( | TokenStream * | in, | |
| int | _min, | |||
| int | _max | |||
| ) |
Build a filter that removes words that are too long or too short from the text.
| bool lucene::analysis::LengthFilter::next | ( | Token * | token | ) | [virtual] |
Returns the next input Token whose termText() is the right len.
Implements lucene::analysis::TokenStream.