def get_filter(setid, doctype):
    """Create a DSL filter dict to filter on set and no existing parser"""
    noparse =  {"not" : {"has_child" : { "type": doctype,
                                         "query" : {"match_all" : {}}}}}
    return {"bool" : {"must" : [{"term" : {"sets" : setid}}, noparse]}}