bulk-write to index