fix elasticsearch-api