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

공개 메소드들

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