(self, default)
return query
Remove a specific default filter by passing in its name.
Remove a specific default filter by passing in its name.
Remove a specific default filter by passing in its name .
def remove_default_filter(self, default):
        """Remove a specific default filter by passing in its name."""
        query = deepcopy(self)
        if default in query._default_filters:
            query._default_filters.pop(default)
        if len(query._default_filters) == 0:
            query._default_filters = {"match_all": filters.match_all()}
        return query
def remove_default_filter ( self , default ) : query = deepcopy ( self ) if default in query . _default_filters : query . _default_filters . pop ( default ) if len ( query . _default_filters ) == 0 : query . _default_filters = { "match_all" : filters . match_all ( ) } return query