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