instead of the boolean `needDocFreq` `needTotalTermFreq` can't we just pass a `DocsEnum#flag`?