doing some retries if bulk indexing failed for some reason