code: func IsConnErr(err error) bool {
  	return err == ErrNoClient || errors.Cause(err) == ErrNoClient
  }
docs: // IsConnErr returns true if the error indicates that Elastic could not
  // find an Elasticsearch host to connect to.