def get_namespaced_index(config, index):
    """ Grabs indexer.namespace from settings and namespace the given index """
    try:
        settings = config.registry.settings
    except:
        settings = config.settings
    namespace = settings.get('indexer.namespace') or ''
    return namespace + index
