@classmethod
    def has_child(cls, child_type, query):

        return cls(has_child={'type': child_type, 'query': query})
http://www.elasticsearch.org/guide/reference/query-dsl/has-child-filter.html
dataset/ETHPy150Open ooici/elasticpy/elasticpy/filter.py/ElasticFilter.has_child