**Is your feature request related to a problem?** Ref: https://github.com/opensearch-project/opensearch-spark/pull/800