@classmethod
    def ids(cls, values, itype=None):
        instance = cls(ids={'values': values})
        if itype is not None:
            instance['ids']['type'] = itype

        return instance
http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html
dataset/ETHPy150Open ooici/elasticpy/elasticpy/filter.py/ElasticFilter.ids