es_settings = db.session.query(Settings).first()
es = Elasticsearch(host = es_settings.elastic_search_url , port = es_settings.port)
es_base_uri = 'http://%s:%s' % (es_settings.elastic_search_url, es_settings.port)
es_uri = es_base_uri+ '/project_%s/_search'