ExpandWeight: clean up termfreq code
commited532089267905eea8020e3a532c6281023b2286
authorOlly Betts <olly@survex.com>
Fri, 15 Sep 2017 01:26:19 +0000 (15 13:26 +1200)
committerOlly Betts <olly@survex.com>
Fri, 15 Sep 2017 01:26:19 +0000 (15 13:26 +1200)
tree68fce475f0e2547df4cc67906314eb3b781367cc
parent87d1b57abf0b6d47a5d14960122d7c665573a86a
ExpandWeight: clean up termfreq code

The only functional change should be that an approximated termfreq is
now rounded to the nearest integer at the end of the calculation -
previously it was always rounded down.

The other interesting change is removing a pointless check to ensure
that the approximated termfreq is >= rtermfreq, which must always be
true since we only scale *up* the termfreq and it's >= rtermfreq to
start with.
xapian-core/expand/expandweight.cc