Add a streaming bulk index helper function.