Write/update to elasticsearch