Elasticsearch component for writing data