Class CodepointCountFilter
Removes words that are too long or too short from the stream.
Note: Length is calculated as the number of Unicode codepoints.
Inheritance
System.Object
CodepointCountFilter
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class CodepointCountFilter : FilteringTokenFilter, IDisposable
Constructors
| Improve this Doc View SourceCodepointCountFilter(LuceneVersion, TokenStream, Int32, Int32)
Create a new CodepointCountFilter. This will filter out tokens whose CharTermAttribute is either too short (J2N.Character.CodePointCount(System.Char[],System.Int32,System.Int32) < min) or too long (J2N.Character.CodePointCount(System.Char[],System.Int32,System.Int32) > max).
Declaration
public CodepointCountFilter(LuceneVersion version, TokenStream in, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the Lucene match version |
TokenStream | in | the TokenStream to consume |
System.Int32 | min | the minimum length |
System.Int32 | max | the maximum length |
Methods
| Improve this Doc View SourceAccept()
Declaration
protected override bool Accept()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable