C# Class Lucene.Net.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
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
CodepointCountFilter ( LuceneVersion version, TokenStream @in, int min, int max ) : Lucene.Net.Analysis.Tokenattributes

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).

Méthodes protégées

Méthode Description
Accept ( ) : bool

Method Details

Accept() protected méthode

protected Accept ( ) : bool
Résultat bool

CodepointCountFilter() public méthode

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 ( 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
Résultat Lucene.Net.Analysis.Tokenattributes