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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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