Class 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.
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class LengthFilter : FilteringTokenFilter, IDisposable
Constructors
| Improve this Doc View SourceLengthFilter(LuceneVersion, TokenStream, Int32, Int32)
Create a new Length
Declaration
public LengthFilter(LuceneVersion version, TokenStream in, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Lucene |
version | the Lucene match version |
Token |
in | the Token |
System. |
min | the minimum length |
System. |
max | the maximum length |
LengthFilter(LuceneVersion, Boolean, TokenStream, Int32, Int32)
Declaration
public LengthFilter(LuceneVersion version, bool enablePositionIncrements, TokenStream in, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Lucene |
version | |
System. |
enablePositionIncrements | |
Token |
in | |
System. |
min | |
System. |
max |
Methods
| Improve this Doc View SourceAccept()
Declaration
protected override bool Accept()
Returns
Type | Description |
---|---|
System. |
Overrides
Implements
IDisposable