def _create_test_index():
 es = elasticsearch.Elasticsearch(connection_class=Urllib3HttpConnection, host=HOST, port=PORT, http_auth=HTTP_AUTH)
 if (not es.indices.exists(INDEX)):
  es.indices.create(INDEX)

def _create_test_index ( ) : es = elasticsearch . Elasticsearch ( connection_class = Urllib3HttpConnection , host = HOST , port = PORT , http_auth = HTTP_AUTH ) if ( not es . indices . exists ( INDEX ) ) : es . indices . create ( INDEX )
create content index .