Use predicate expression with NEST in .NET 5


Is it possible to configure in NEST (.NET 5) a way to use a default predicate expression (Default Query Filter) for all NEST queries (GetAsync, GetManyAsync, SearchAsync, ExistsAsync, ...) performed on any index?

The idea would be to work as it is done in Entity Frameork, using HasQueryFilter, for example:

builder.HasQueryFilter(m => m.DeletedAt == null);

Where in all queries, the expression DeletedAt == null is inserted into the query.