Minor improvements to PL2+ implementation
commit788e1db158f2fd62fb9bd46dbde99a50f30f9351
authorOlly Betts <olly@survex.com>
Thu, 20 Jun 2024 02:41:55 +0000 (20 14:41 +1200)
committerOlly Betts <olly@survex.com>
Thu, 20 Jun 2024 03:06:49 +0000 (20 15:06 +1200)
treea83b7e838c56c9592f7df8de5b62097314f28e72
parentc5f6633c4bb807be1e8f0681eb53bbb858315d61
Minor improvements to PL2+ implementation

Improve comments and set upper_bound to zero up front in init() for the
case where PL2+ "essentially ignores non-discriminative query terms" by
returning zero for the termweight.
xapian-core/weight/pl2plusweight.cc