Es2

Implementing the ElasticSearch backend
Use something like os.path.parent_dir.