removed urlencoding in docname
integrated elasticsearch api wrapper in flask app