#include <omenquire.h>
Inheritance diagram for BoolWeight:
Public Methods | |
OmWeight * | clone () const |
Return a new weight object of this type. More... | |
BoolWeight () | |
~BoolWeight () | |
om_weight | get_sumpart (om_termcount, om_doclength) 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) 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... |
|
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. |