register

fun register(state: TermState, ord: Int, docFreq: Int, totalTermFreq: Long)

Registers and associates a TermState with an leaf ordinal. The leaf ordinal should be derived from a IndexReaderContext's leaf ord.


fun register(state: TermState, ord: Int)

Expert: Registers and associates a TermState with an leaf ordinal. The leaf ordinal should be derived from a IndexReaderContext's leaf ord. On the contrary to .register this method does NOT update term statistics.