# Updating of indexes with elasticsearch-py

**URL:** https://discuss.elastic.co/t/updating-of-indexes-with-elasticsearch-py/233711
**Category:** Elasticsearch
**Created:** [May 21, 2020, 9:46am UTC](https://discuss.elastic.co/t/updating-of-indexes-with-elasticsearch-py/233711 "2020-05-21T09:46:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![richylyq](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@richylyq](https://discuss.elastic.co/u/richylyq)
#### Post date: [May 21, 2020, 9:46am UTC](https://discuss.elastic.co/t/updating-of-indexes-with-elasticsearch-py/233711/1 "2020-05-21T09:46:04Z")

</div>

Hi,

I have gotten my python script which is using the `elasticsearch-py` library to index a csv file which will be updated daily. However, i am currently deleting the existing index and creating it again to "update" the data when i rerun the script as i could not think of any ways to update the index.  
This is definitely not the correct solution, therefore i am seeking advice on this here.

☹ 🤕

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 18, 2020, 9:46am UTC](https://discuss.elastic.co/t/updating-of-indexes-with-elasticsearch-py/233711/2 "2020-06-18T09:46:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
