C# 클래스 org.apache.lucene.analysis.miscellaneous.CodepointCountFilter

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

Note: Length is calculated as the number of Unicode codepoints.

상속: Lucene.Net.Analysis.Util.FilteringTokenFilter
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
CodepointCountFilter ( Version version, TokenStream @in, int min, int max )

Create a new CodepointCountFilter. This will filter out tokens whose CharTermAttribute is either too short (Character#codePointCount(char[], int, int) < min) or too long (Character#codePointCount(char[], int, int) > max).

accept ( ) : bool

메소드 상세

CodepointCountFilter() 공개 메소드

Create a new CodepointCountFilter. This will filter out tokens whose CharTermAttribute is either too short (Character#codePointCount(char[], int, int) < min) or too long (Character#codePointCount(char[], int, int) > max).
public CodepointCountFilter ( Version version, TokenStream @in, int min, int max )
version Version the Lucene match version
@in TokenStream
min int the minimum length
max int the maximum length

accept() 공개 메소드

public accept ( ) : bool
리턴 bool