getOffsetGap

open fun getOffsetGap(fieldName: String?): Int

Just like .getPositionIncrementGap, except for Token offsets instead. By default this returns 1. This method is only called if the field produced at least one token for indexing.

Return

offset gap, added to the next token emitted from .tokenStream. This value must be >= 0.

Parameters

fieldName

the field just indexed