@classmethod
    def bool_filter(cls, query):

        return cls({'bool': query})
http://www.elasticsearch.org/guide/reference/query-dsl/bool-filter.html
dataset/ETHPy150Open ooici/elasticpy/elasticpy/filter.py/ElasticFilter.bool_filter