Méthode | 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 |
Méthode | 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 | |
Résultat | Analyzer |
protected wrapComponents ( string fieldName, TokenStreamComponents components ) : TokenStreamComponents | ||
fieldName | string | |
components | TokenStreamComponents | |
Résultat | TokenStreamComponents |