[Xapian-commits] 13222: branches/matchspy/xapian-core/ branches/matchspy/xapian-core/api/ branches/matchspy/xapian-core/include/xapian/ branches/matchspy/xapian-core/tests/

richard xapian-commits at lists.xapian.org
Fri Jul 31 19:16:04 BST 2009


SVN root:       svn://svn.xapian.org/xapian
Changes by:     richard
Revision:       13222
Date:           2009-07-31 19:16:04 +0100 (Fri, 31 Jul 2009)

Log message (13 lines):
api/matchspy.cc,include/xapian/matchspy.h: Split
ValueCountMatchSpy into two - ValueCountMatchSpy now assumes that
the values are stored in the slot as-is, and the new
MultiValueCountMatchSpy assumes that the values stored have been
passed through a StringListSerialiser.  Also, remove
CategorySelectMatchSpy (since it isn't really useful to have this
as a subclass of a match spy, particularly now that there isn't a
clear parent class.  Instead, add equivalents of the methods it
provided as functions: score_evenness() and
build_numeric_ranges().  Represent numeric ranges with a new
Xapian::NumericRange class, rather than forcing users to unpick
them from a serialised string.
tests/api_matchspy.cc: Test new organisation of matchspies.

Modified files:
U   branches/matchspy/xapian-core/ChangeLog
U   branches/matchspy/xapian-core/api/matchspy.cc
U   branches/matchspy/xapian-core/include/xapian/matchspy.h
U   branches/matchspy/xapian-core/tests/api_matchspy.cc

Links:
http://xapian.org/C?13222
http://xapian.org/C?13222?branches/matchspy/xapian-core/ChangeLog
http://xapian.org/C?13222?branches/matchspy/xapian-core/api/matchspy.cc
http://xapian.org/C?13222?branches/matchspy/xapian-core/include/xapian/matchspy.h
http://xapian.org/C?13222?branches/matchspy/xapian-core/tests/api_matchspy.cc



More information about the Xapian-commits mailing list