def get_documents(cls, ids):
    # FIXME: We pull the field names from the mapping, but I'm not
    # sure if this works in all cases or not and it's kind of hacky.
    fields = cls.get_mapping()['properties'].keys()
    ret = cls.search().filter(id__in=ids).values_dict(*fields)[:len(ids)]
    return cls.reshape(ret)
Returns a list of ES documents with specified ids and doctype
dataset/ETHPy150Open mozilla/kitsune/kitsune/search/es_utils.py/get_documents