18182: trunk/xapian-core/ trunk/xapian-core/tests/ trunk/xapian-core/weight/

olly <[email protected]> Thu, 31 Jul 2014 03:58:18 +0100
Newsgroups gmane.comp.search.xapian.cvs
Message-ID <[email protected]>
SVN root:       svn://svn.xapian.org/xapian
Changes by:     olly
Revision:       18182
Date:           2014-07-31 03:58:18 +0100 (Thu, 31 Jul 2014)

Log message (4 lines):
tests/api_weight.cc,weight/bb2weight.cc: Avoid calculating logs of 0
or negative values by clamping the normalise wdf to at most one less
than the collection frequency, and the collection size to at least
2.

Modified files:
U   trunk/xapian-core/ChangeLog
U   trunk/xapian-core/tests/api_weight.cc
U   trunk/xapian-core/weight/bb2weight.cc

Links:
http://xapian.org/C?18182
http://xapian.org/C?18182?trunk/xapian-core/ChangeLog
http://xapian.org/C?18182?trunk/xapian-core/tests/api_weight.cc
http://xapian.org/C?18182?trunk/xapian-core/weight/bb2weight.cc