LimitTokenCountAnalyzer
Build an analyzer that limits the maximum number of tokens per field. This analyzer will not consume any tokens beyond the maxTokenCount limit
See also
Build an analyzer that limits the maximum number of tokens per field.
Parameters
delegate
the analyzer to wrap
maxTokenCount
max number of tokens to produce
consumeAllTokens
whether all tokens from the delegate should be consumed even if maxTokenCount is reached.