getTerms

fun getTerms(reader: LeafReader, field: String): Terms

Returns the Terms index for this field, or .EMPTY if it has none.

Return

terms instance, or an empty instance if field does not exist in this reader

Throws

IOException

if an I/O error occurs.