Method | Description | |
---|---|---|
LimitTokenCountAnalyzer ( Analyzer @delegate, int maxTokenCount ) |
Build an analyzer that limits the maximum number of tokens per field. This analyzer will not consume any tokens beyond the maxTokenCount limit
|
|
LimitTokenCountAnalyzer ( Analyzer @delegate, int maxTokenCount, bool consumeAllTokens ) |
Build an analyzer that limits the maximum number of tokens per field.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
getWrappedAnalyzer ( string fieldName ) : Analyzer | ||
wrapComponents ( string fieldName, TokenStreamComponents components ) : TokenStreamComponents |
public LimitTokenCountAnalyzer ( Analyzer @delegate, int maxTokenCount ) | ||
@delegate | Analyzer | |
maxTokenCount | int |
public LimitTokenCountAnalyzer ( Analyzer @delegate, int maxTokenCount, bool consumeAllTokens ) | ||
@delegate | Analyzer | |
maxTokenCount | int | max number of tokens to produce |
consumeAllTokens | bool | whether all tokens from the delegate should be consumed even if maxTokenCount is reached. |
protected getWrappedAnalyzer ( string fieldName ) : Analyzer | ||
fieldName | string | |
return | Analyzer |
protected wrapComponents ( string fieldName, TokenStreamComponents components ) : TokenStreamComponents | ||
fieldName | string | |
components | TokenStreamComponents | |
return | TokenStreamComponents |