Ground work to persist data in elasticsearch.