Ticket #295: weightnames.patch
File weightnames.patch, 2.1 KB (added by , 16 years ago) |
---|
-
include/xapian/enquire.h
1122 1122 1123 1123 /** Name of the weighting scheme. 1124 1124 * 1125 * If the subclass is called FooWeight, this should return "Foo". 1125 * This should return the fully-namespaced name of the weighting 1126 * class, so if the subclass is called Xapian::FooWeight, this should 1127 * return "Xapian::FooWeight". 1126 1128 */ 1127 1129 virtual std::string name() const = 0; 1128 1130 -
matcher/scaleweight.cc
33 33 34 34 std::string 35 35 ScaleWeight::name() const { 36 return " Scale";36 return "Xapian::ScaleWeight"; 37 37 } 38 38 39 39 std::string -
matcher/tradweight.cc
40 40 return new TradWeight(param_k); 41 41 } 42 42 43 string TradWeight::name() const { return " Trad"; }43 string TradWeight::name() const { return "Xapian::TradWeight"; } 44 44 45 45 string TradWeight::serialise() const { 46 46 return serialise_double(param_k); -
matcher/bm25weight.cc
40 40 return new BM25Weight(k1, k2, k3, b, min_normlen); 41 41 } 42 42 43 string BM25Weight::name() const { return " BM25"; }43 string BM25Weight::name() const { return "Xapian::BM25Weight"; } 44 44 45 45 string BM25Weight::serialise() const { 46 46 string result = serialise_double(k1); -
matcher/weight.cc
55 55 56 56 BoolWeight::~BoolWeight() { } 57 57 58 std::string BoolWeight::name() const { return " Bool"; }58 std::string BoolWeight::name() const { return "Xapian::BoolWeight"; } 59 59 60 60 std::string BoolWeight::serialise() const { return ""; } 61 61