[Xapian-commits] 11584: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/include/xapian/ trunk/xapian-core/tests/
richard
xapian-commits at lists.xapian.org
Fri Oct 31 10:53:37 GMT 2008
SVN root: svn://svn.xapian.org/xapian
Changes by: richard
Revision: 11584
Date: 2008-10-31 10:53:37 +0000 (Fri, 31 Oct 2008)
Log message (8 lines):
api/postingsource.cc,include/xapian/postingsource.h: Add a new
built-in posting source, FixedWeightSource, which returns every
document in the database, but with a fixed weight. In
particular, this is useful to add a constant weight to every item
in a subquery. Also, in ValueWeightPostingSource, refactor the
"last_docid" member to a bool "started", since this is all it's
used for.
tests/api_db.cc: Add fixedweightsource1, to test FixedWeightSource.
Modified files:
U trunk/xapian-core/ChangeLog
U trunk/xapian-core/api/postingsource.cc
U trunk/xapian-core/include/xapian/postingsource.h
U trunk/xapian-core/tests/api_db.cc
Links:
http://xapian.org/C?11584
http://xapian.org/C?11584?trunk/xapian-core/ChangeLog
http://xapian.org/C?11584?trunk/xapian-core/api/postingsource.cc
http://xapian.org/C?11584?trunk/xapian-core/include/xapian/postingsource.h
http://xapian.org/C?11584?trunk/xapian-core/tests/api_db.cc
More information about the Xapian-commits
mailing list