Constructor LengthFilter
LengthFilter(LuceneVersion, Boolean, TokenStream, Int32, Int32)
Declaration
[Obsolete("enablePositionIncrements=false is not supported anymore as of Lucene 4.4.")]
public LengthFilter(LuceneVersion version, bool enablePositionIncrements, TokenStream in, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | |
System.Boolean | enablePositionIncrements | |
TokenStream | in | |
System.Int32 | min | |
System.Int32 | max |
LengthFilter(LuceneVersion, TokenStream, Int32, Int32)
Create a new LengthFilter. This will filter out tokens whose CharTermAttribute is either too short (Length < min) or too long (Length > max).
Declaration
public LengthFilter(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 |