C# Class Lucene.Net.Analysis.Miscellaneous.LengthFilter

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

Note: Length is calculated as the number of UTF-16 code units.

Inheritance: Lucene.Net.Analysis.Util.FilteringTokenFilter
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
LengthFilter ( LuceneVersion version, TokenStream @in, int min, int max ) : Lucene.Net.Analysis.Tokenattributes

Create a new LengthFilter. This will filter out tokens whose CharTermAttribute is either too short (CharTermAttribute#length() < min) or too long (CharTermAttribute#length() > max).

Méthodes protégées

Méthode Description
Accept ( ) : bool

Private Methods

Méthode Description
LengthFilter ( LuceneVersion version, bool enablePositionIncrements, TokenStream @in, int min, int max ) : Lucene.Net.Analysis.Tokenattributes

Method Details

Accept() protected méthode

protected Accept ( ) : bool
Résultat bool

LengthFilter() public méthode

Create a new LengthFilter. This will filter out tokens whose CharTermAttribute is either too short (CharTermAttribute#length() < min) or too long (CharTermAttribute#length() > max).
public LengthFilter ( LuceneVersion version, TokenStream @in, int min, int max ) : Lucene.Net.Analysis.Tokenattributes
version LuceneVersion the Lucene match version
@in TokenStream
min int the minimum length
max int the maximum length
Résultat Lucene.Net.Analysis.Tokenattributes