neoremind commented on PR #17022:
URL: https://github.com/apache/lucene/pull/17022#issuecomment-7273602330
IMHO, `totalTermCount` is better, and pairs with `uniqueTermCount`, but
there is below logic of customized freq where the value is a sum of custom
freqs, not strictly a count.
```
invertState.length =
Math.addExact(
invertState.length,
invertState.termFreqAttribute.getTermFrequency());
```
So essentially, it is the sum of term frequencies in the field for one doc.
`totalTermFreq` would describe that, but it already means the total occurrences
of one term across all docs (I looked at TermsEnum#totalTermFreq). Just my 2
cents: `length` expresses the "volume" of the field in a doc, maybe hard to
find a better alternative. Happy to take other experts' insights.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]