#include <omenquire.h>
Inheritance diagram for TradWeight:
Public Methods | |
TradWeight (double k=1) | |
Construct a TradWeight. More... | |
OmWeight * | clone () const |
Return a new weight object of this type. More... | |
~TradWeight () | |
std::string | name () const |
Name of the weighting scheme. More... | |
std::string | serialise () const |
Serialise object parameters into a string. More... | |
OmWeight * | unserialise (const std::string &s) const |
om_weight | get_sumpart (om_termcount wdf, om_doclength len) const |
Get a weight which is part of the sum over terms being performed. More... | |
om_weight | get_maxpart () const |
Gets the maximum value that get_sumpart() may return. More... | |
om_weight | get_sumextra (om_doclength len) const |
Get an extra weight for a document to add to the sum calculated over the query terms. More... | |
om_weight | get_maxextra () const |
Gets the maximum value that get_sumextra() may return. More... | |
bool | get_sumpart_needs_doclength () const |
return false if the weight object doesn't need doclength. More... |
|
Construct a TradWeight.
|
|
Return a new weight object of this type.
Implements OmWeight. |
|
Gets the maximum value that get_sumextra() may return. This is used in optimising searches. Implements OmWeight. |
|
Gets the maximum value that get_sumpart() may return. This is used in optimising searches, by having the postlist tree decay appropriately when parts of it can have limited, or no, further effect. Implements OmWeight. |
|
Get an extra weight for a document to add to the sum calculated over the query terms. This returns a weight for a given document, and is used by some weighting schemes to account for influence such as document length.
Implements OmWeight. |
|
Get a weight which is part of the sum over terms being performed. This returns a weight for a given term and document. These weights are summed to give a total weight for the document.
Implements OmWeight. |
|
return false if the weight object doesn't need doclength.
Reimplemented from OmWeight. |
|
Name of the weighting scheme.
Implements OmWeight. |
|
Serialise object parameters into a string.
Implements OmWeight. |