startTerm

abstract fun startTerm(term: BytesRef?, freq: Int)

Adds a term and its term frequency freq. If this field has positions and/or offsets enabled, then .addPosition will be called freq * times respectively.