# How to add refresh option in python elasticsearch parallel\_bulk helper

**URL:** <https://discuss.elastic.co/t/how-to-add-refresh-option-in-python-elasticsearch-parallel-bulk-helper/215433>\
**Category:** Elasticsearch\
**Created:** [January 17, 2020, 9:24am UTC](https://discuss.elastic.co/t/how-to-add-refresh-option-in-python-elasticsearch-parallel-bulk-helper/215433 "2020-01-17T09:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akhilmathew001](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhilmathew001/32/77941_2.png) [@akhilmathew001](https://discuss.elastic.co/u/akhilmathew001)\
**Post date:** [January 17, 2020, 9:24am UTC](https://discuss.elastic.co/t/how-to-add-refresh-option-in-python-elasticsearch-parallel-bulk-helper/215433/1 "2020-01-17T09:24:23Z")

</div>

I am using python's elasticsearch client for doing elasticsearch 7 related activities.  
For bulk indexing documents to ES elasticsearch's parallel\_bulk helper function is being used.  
Following is the sample code...

```
    helpers.parallel_bulk(self.esclient, 
                          gen_es_data,
                          thread_count = 4, chunk_size = 1000, 
                          max_chunk_bytes = 104857600, queue_size = 4, 
                          raise_on_exception = True)

```

In this way how can add refresh option, so that I can trigger a refresh and the documents that I indexed will be readily available

---

<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:** [February 14, 2020, 9:24am UTC](https://discuss.elastic.co/t/how-to-add-refresh-option-in-python-elasticsearch-parallel-bulk-helper/215433/2 "2020-02-14T09:24:27Z")

</div>

Closed on February 14, 2020, 9:24am UTC

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