def METHOD_NAME(type):
    """ For IPT connections, prepend the index prefix to the type so we connect to the right index-per-type index. """
    # ~~Elasticsearch:Technology~~
    if app.config['ELASTIC_SEARCH_INDEX_PER_TYPE']:
        return app.config['ELASTIC_SEARCH_DB_PREFIX'] + type
    else:
        return type