OpenSearch.Client by OpenSearch and contributors

<PackageReference Include="OpenSearch.Client" Version="1.6.0" />

.NET API 3,588,216 bytes

 IUniqueTokenFilter

public interface IUniqueTokenFilter : ITokenFilter
The unique token filter can be used to only index unique tokens during analysis. By default it is applied on all the token stream
bool? OnlyOnSamePosition { get; set; }

If only_on_same_position is set to true, it will only remove duplicate tokens on the same position.