Added ability to use versioning with bulk_index().