C# Класс org.apache.lucene.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 ( System.Version version, TokenStream @in, int min, int max ) : System

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 ( System.Version version, bool enablePositionIncrements, TokenStream @in, int min, int max ) : System

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

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 ( System.Version version, TokenStream @in, int min, int max ) : System
version System.Version the Lucene match version
@in TokenStream
min int the minimum length
max int the maximum length
Результат System

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

public accept ( ) : bool
Результат bool