C# Class 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.

Inheritance: Lucene.Net.Analysis.Util.FilteringTokenFilter
Show file Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
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

Method Details

CodepointCountFilter() public method

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 method

public accept ( ) : bool
return bool