docFreq

abstract fun docFreq(term: Term): Int

Returns the number of documents containing the term. This method returns 0 if the term or field does not exists. This method does not take into account deleted documents that have not yet been merged away.

See also