Fix termfreq used in weight calcs for repeated terms
commitabe2f31c88afec11ed0c9e5ea7399dbcefc79fbd
authorOlly Betts <olly@survex.com>
Sun, 10 Dec 2017 22:45:54 +0000 (11 11:45 +1300)
committerOlly Betts <olly@survex.com>
Sun, 10 Dec 2017 22:45:54 +0000 (11 11:45 +1300)
tree9845ef3dc93d25a97f231ffe371373adb61df0f5
parent852845b5f66234cf59097171d742f8c5df1ccb06
Fix termfreq used in weight calcs for repeated terms

If the same term occurred more than once in the query, the termfreq used
for weight calculations was being scaled by the number of different term
positions.  Now it is used as-is.
xapian-core/tests/api_weight.cc
xapian-core/weight/weightinternal.cc