``from invenio.ext.elasticsearch import ElasticSearch``? or is the plan to externalize the plugin afterwards? If yes, take a look at https://github.com/lnielsen-cern/flask-ext-skeleton