Modify ElasticSeach

- Check input condition for exists/index/delete methods