fix elasticsearch service get issue