xapian-core
1.4.26
|
An item resulting from a query. More...
#include <omenquireinternal.h>
Public Member Functions | |
MSetItem (double wt_, Xapian::docid did_) | |
MSetItem (double wt_, Xapian::docid did_, const string &key_) | |
MSetItem (double wt_, Xapian::docid did_, const string &key_, Xapian::doccount collapse_count_) | |
void | swap (MSetItem &o) |
string | get_description () const |
Return a string describing this object. More... | |
Public Attributes | |
double | wt |
Weight calculated. More... | |
Xapian::docid | did |
Document id. More... | |
Xapian::doccount | collapse_count |
Count of collapses done on collapse_key so far. More... | |
string | collapse_key |
Value which was used to collapse upon. More... | |
string | sort_key |
Used when sorting by value. More... | |
An item resulting from a query.
This item contains the document id, and the weight calculated for the document.
Definition at line 61 of file omenquireinternal.h.
|
inline |
Definition at line 63 of file omenquireinternal.h.
|
inline |
Definition at line 66 of file omenquireinternal.h.
|
inline |
Definition at line 69 of file omenquireinternal.h.
string Xapian::Internal::MSetItem::get_description | ( | ) | const |
Return a string describing this object.
Definition at line 149 of file omenquire.cc.
References Xapian::Internal::str().
Referenced by Xapian::RSet::Internal::get_items(), and Xapian::MSet::Internal::~Internal().
|
inline |
Definition at line 74 of file omenquireinternal.h.
References collapse_count, collapse_key, did, sort_key, and wt.
Xapian::doccount Xapian::Internal::MSetItem::collapse_count |
Count of collapses done on collapse_key so far.
This is normally 0, and goes up for each collapse done It is not necessarily an indication of how many collapses might be done if an exhaustive match was done
Definition at line 94 of file omenquireinternal.h.
Referenced by serialise_mset(), and swap().
string Xapian::Internal::MSetItem::collapse_key |
Value which was used to collapse upon.
If the collapse option is not being used, this will always have a null value.
If the collapse option is in use, this will contain the collapse key's value for this particular item. If the key is not present for this item, the value will be a null string. Only one instance of each key value (apart from the null string) will be present in the items in the returned Xapian::MSet.
Definition at line 107 of file omenquireinternal.h.
Referenced by MultiMatch::get_mset(), Collapser::process(), serialise_mset(), and swap().
Xapian::docid Xapian::Internal::MSetItem::did |
Document id.
Definition at line 86 of file omenquireinternal.h.
Referenced by Xapian::Enquire::Internal::get_document(), msetcmp_by_did(), msetcmp_by_relevance_then_value(), msetcmp_by_value(), msetcmp_by_value_then_relevance(), Xapian::Enquire::Internal::read_doc(), Xapian::Enquire::Internal::request_doc(), serialise_mset(), and swap().
string Xapian::Internal::MSetItem::sort_key |
Used when sorting by value.
Definition at line 110 of file omenquireinternal.h.
Referenced by MultiMatch::get_mset(), msetcmp_by_relevance_then_value(), msetcmp_by_value(), msetcmp_by_value_then_relevance(), serialise_mset(), and swap().
double Xapian::Internal::MSetItem::wt |
Weight calculated.
Definition at line 83 of file omenquireinternal.h.
Referenced by CollapseData::add_item(), MultiMatch::get_mset(), msetcmp_by_relevance(), msetcmp_by_relevance_then_value(), msetcmp_by_value_then_relevance(), serialise_mset(), swap(), and Xapian::MSet::Internal::~Internal().