elasticsearch update and fix to index file