Testing ES: Does es.indices.refresh() Block Until New Documents are Available for Python DSL?

Hello,
I'm writing unittests for some of our indices using the Python elasticsearch-dsl ( for ES version 2.4 ). Does the call es.indices.refresh(index=<index_name>) block until the indices are refreshed? I'm using this on test suite setUp to make sure that my models are indexed and ready to be searched. The docs make it sound like it will block until they are refreshed. But I'm experiencing weird behavior where my documents are not there.

Just want to make sure this is the intended behavior
Thanks

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