Method | Description | |
---|---|---|
LimitTokenCountFilter ( TokenStream @in, int maxTokenCount ) |
Build a filter that only accepts tokens up to a maximum number. This filter will not consume any tokens beyond the maxTokenCount limit
|
|
LimitTokenCountFilter ( TokenStream @in, int maxTokenCount, bool consumeAllTokens ) |
Build an filter that limits the maximum number of tokens per field.
|
|
incrementToken ( ) : bool | ||
reset ( ) : void |
public LimitTokenCountFilter ( TokenStream @in, int maxTokenCount ) | ||
@in | TokenStream | |
maxTokenCount | int |
public LimitTokenCountFilter ( TokenStream @in, int maxTokenCount, bool consumeAllTokens ) | ||
@in | TokenStream | |
maxTokenCount | int | max number of tokens to produce |
consumeAllTokens | bool | whether all tokens from the input must be consumed even if maxTokenCount is reached. |