def search_key_for_client(client):
    """Generate a string search key for a client"""
    elements = []
    if  'name' in client:
        elements.append(client['name'])  # name of client
    if  'hostname' in client:
        elements.append(client['hostname'])  # hostname of client
    if 'oui' in client:
        elements.append(client['oui']) # brand of client
    if 'ip' in client:
        elements.append(client['ip']) # ip of client
    return u' '.join(elements)