'Filters (if `neg` == True, filters out) one or more
particular AS.'

@staticmethod
def searchasname(asname, neg=False):

    if neg:
        if isinstance(asname, utils.REGEXP_T):
            return {'infos.as_name': {'$not': asname}}
        else:
            return {'infos.as_name': {'$ne': asname}}
    return {'infos.as_name': asname}
