startDocument

open override fun startDocument(numVectorFields: Int)

Called before writing the term vectors of the document. .startField will be called numVectorFields times. Note that if term vectors are enabled, this is called even if the document has no vector fields, in this case numVectorFields will be zero.