You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I appreciate the convenience of streaming_bulk. thank you for that. What is the preferred method for passing a timeout parameter to a helper? Or is there an example that sets timeout in another function and retains some of the convenience of streaming_bulk?
def main():
rows = updates('documents.json.gz')
client = Elasticsearch()
for result in streaming_bulk(client, rows, chunk_size=500, raise_on_error=False):
print result