prepare dataset for bulk import to elasticsearch