I assume that this will need modifications to the in-memory Posting class, LexiconEntry and whatever writes the postings to disk.
Anything that implements EntryStatistics / LexiconEntry, and those that write. Big question, should we record max tfs per field also for FieldLexiconEntry. Can you write down the index writing classes, and then we can make the point?
For classical indexing:
For single-pass indexing:
For the main structures:
Tagging for 4.1
Richards says look at the memory index
Tagging for 5.0. Initial patch in place
This is fixed in git, all seems well.