Make BM25PlusWeight inherit from Weight not BM25Weight
commit1c59cdbed06d1c7bb0fa26f1fa208aee2eb98fd4
authorOlly Betts <olly@survex.com>
Tue, 16 Aug 2016 06:30:20 +0000 (16 18:30 +1200)
committerOlly Betts <olly@survex.com>
Fri, 16 Sep 2016 05:33:27 +0000 (16 17:33 +1200)
tree9d75d5a7f7bfdad9219ccd78312806c3835a007f
parentda60229e6bdf2b3aa00bfd267ec6ee959ac64b7e
Make BM25PlusWeight inherit from Weight not BM25Weight

This avoids the size overhead of BM25Weight's unused member variables
and possible extra work due to need_stat() also being called by
BM25Weight for its default parameters.

(cherry picked from commit 420fcaba4285e4e9a1e4820823ffaec0459bf8b6)
xapian-core/include/xapian/weight.h