fixed wrong method calls in elasticsearch Command