If the idea is to split the extension on a general one (just for es connection) and an other to index, search, etc. I can use: https://github.com/kazoup/flask-elasticsearch/blob/master/flask_elasticsearch.py