[pulsar-io-elastic-search] NumberOfReplicas can be 0 (#4328)

Motivation
Replicating shards in Elasticsearch is not mandatory, so we should have a way to set numberOfReplicas to 0 in sink configuration.

Modifications
Change condition on indexNumberOfReplicas to accept 0 value
Update error message
2 files changed
tree: 8ed3a5362c052bef7f0304a67e9d8bec831d2ab8
  1. pulsar-io/