'Filters records with at least one port other than those
listed in `ports` with state `state`.'

def searchportsother(self, ports, protocol='tcp', state='open'):

    return self.searchport(({'$elemMatch': {'$nin': ports}} if (state == 'open') else {'$nin': ports}), protocol=protocol, state=state)
