NEST by Elastic and contributors

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

.NET API 5,340,160 bytes

 IPredicateTokenFilter

public interface IPredicateTokenFilter : ITokenFilter
The predicate_token_filter token filter takes a predicate script, and removes tokens that do not match the predicate.
IScript Script { get; set; }

a predicate script that determines whether or not the current token will be emitted. Note that only inline scripts are supported.