[Xapian-commits] 9386: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/include/xapian/ trunk/xapian-core/matcher/ trunk/xapian-core/tests/

richard xapian-commits at lists.xapian.org
Sun Sep 30 23:37:27 BST 2007


SVN root:       svn://svn.xapian.org/xapian
Changes by:     richard
Revision:       9386
Date:           2007-09-30 23:37:24 +0100 (Sun, 30 Sep 2007)

Log message (19 lines):
api/omquery.cc,api/omqueryinternal.cc,include/xapian/query.h: Add
OP_MULT_WEIGHT operator, and a new Query constructor which takes
a single subquery and a "double" parameter - currently only
useful for OP_MULT_WEIGHT.  Add dbl_parameter to Query::Internal,
to hold this parameter.  Add serialisation of OP_MULT_WEIGHT
using "." to represent the operator.  Drop OP_MULT_WEIGHT
operators which have a parameter of 1 (or very close) when
simplifying, since these have no effect.
matcher/multweightpostlist.cc,matcher/multweightpostlist.h: New
files, implementing a postlist which multiplies the weights from
its single sub-postlist by a parameter.
matcher/Makefile.mk: Add new files.
matcher/localmatch.cc: Add support for the OP_MULT_WEIGHT query
operator, which produces a MultWeightPostList if the associated
parameter is greater than DBL_EPSILON, and produces a boolean query
otherwise.
tests/api_anydb.cc: Add tests for OP_MULT_WEIGHT operator with
various queries, and various multipliers.
NEWS: Update

Modified files:
U   trunk/xapian-core/ChangeLog
U   trunk/xapian-core/NEWS
U   trunk/xapian-core/api/omquery.cc
U   trunk/xapian-core/api/omqueryinternal.cc
U   trunk/xapian-core/include/xapian/query.h
U   trunk/xapian-core/matcher/Makefile.mk
U   trunk/xapian-core/matcher/localmatch.cc
A   trunk/xapian-core/matcher/multweightpostlist.cc
A   trunk/xapian-core/matcher/multweightpostlist.h
U   trunk/xapian-core/tests/api_anydb.cc

Links:
http://xapian.org/C?9386
http://xapian.org/C?9386?trunk/xapian-core/ChangeLog
http://xapian.org/C?9386?trunk/xapian-core/NEWS
http://xapian.org/C?9386?trunk/xapian-core/api/omquery.cc
http://xapian.org/C?9386?trunk/xapian-core/api/omqueryinternal.cc
http://xapian.org/C?9386?trunk/xapian-core/include/xapian/query.h
http://xapian.org/C?9386?trunk/xapian-core/matcher/Makefile.mk
http://xapian.org/C?9386?trunk/xapian-core/matcher/localmatch.cc
http://xapian.org/C?9386?trunk/xapian-core/matcher/multweightpostlist.cc?A
http://xapian.org/C?9386?trunk/xapian-core/matcher/multweightpostlist.h?A
http://xapian.org/C?9386?trunk/xapian-core/tests/api_anydb.cc



More information about the Xapian-commits mailing list