NEST by Elastic and contributors

<PackageReference Include="NEST" Version="5.4.0" />

.NET API 4,554,240 bytes

 ILimitTokenCountTokenFilter

Limits the number of tokens that are indexed per document and field.
bool? ConsumeAllTokens { get; set; }

If set to true the filter exhaust the stream even if max_token_count tokens have been consumed already.

int? MaxTokenCount { get; set; }

The maximum number of tokens that should be indexed per document and field.