merge

open fun merge(mergeState: MergeState): Int

Merges in the stored fields from the readers in mergeState. The default implementation skips over deleted documents, and uses .startDocument, writeField, and .finish, returning the number of documents that were written. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).