Modify ElasticSearch

- Remove redundant variable
- Correct diff param between interface with implement