C# Класс 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.

Наследование: Lucene.Net.Analysis.Util.FilteringTokenFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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).

Защищенные методы

Метод Описание
Accept ( ) : bool

Приватные методы

Метод Описание
LengthFilter ( LuceneVersion version, bool enablePositionIncrements, TokenStream @in, int min, int max ) : Lucene.Net.Analysis.Tokenattributes

Описание методов

Accept() защищенный Метод

protected Accept ( ) : bool
Результат bool

LengthFilter() публичный Метод

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
Результат Lucene.Net.Analysis.Tokenattributes