Fix the BM25+ termweight calculation
commit572a474ee3ff3d22537772c4c491d91e15371bc1
authorOlly Betts <olly@survex.com>
Tue, 16 Aug 2016 06:43:32 +0000 (16 18:43 +1200)
committerOlly Betts <olly@survex.com>
Fri, 16 Sep 2016 05:33:47 +0000 (16 17:33 +1200)
tree469824c11ad4366dcfc3f920aace0ecbaba5f563
parent1c59cdbed06d1c7bb0fa26f1fa208aee2eb98fd4
Fix the BM25+ termweight calculation

The division to calculate the IDF is now done as a floating point
division, rather than an integer one.

Remove the fudge to avoid negative term weights, inherited from
our BM25 implementation - with BM25+'s formula these don't arise.

(cherry picked from commit e6b4afe928dec1b866a192941496c7c917065bb1)
xapian-core/tests/api_weight.cc
xapian-core/weight/bm25plusweight.cc