setLiveCommitData
Sets the iterator to provide the commit user data map at commit time. Calling this method is considered a committable change and will be .commit even if there are no other changes this writer. Note that you must call this method before .prepareCommit. Otherwise it won't be included in the follow-on .commit.
NOTE: the iterator is late-binding: it is only visited once all documents for the commit have been written to their segments, before the next segments_N file is written
fun setLiveCommitData(commitUserData: Iterable<MutableMap.MutableEntry<String, String>>, doIncrementVersion: Boolean)
Sets the commit user data iterator, controlling whether to advance the SegmentInfos.getVersion.
See also
.setLiveCommitData