메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | Analyzer |
protected wrapComponents ( string fieldName, TokenStreamComponents components ) : TokenStreamComponents | ||
fieldName | string | |
components | TokenStreamComponents | |
리턴 | TokenStreamComponents |