Struct representing a single database match. More...
#include <database.h>
Public Member Functions | |
Match (DocId _id, float _score) | |
Match () | |
bool | operator< (const Match &other) const |
Allows sorting Matches in best-to-worst order with std::sort. | |
Public Attributes | |
DocId | id |
float | score |
Struct representing a single database match.
score
is in the range [0,2], where 0 is best and 2 is worst.
Definition at line 15 of file database.h.
vt::Match::Match | ( | ) | [inline] |
Definition at line 20 of file database.h.
vt::Match::Match | ( | DocId | _id, | |
float | _score | |||
) | [inline] |
Definition at line 21 of file database.h.
bool vt::Match::operator< | ( | const Match & | other | ) | const [inline] |
Allows sorting Matches in best-to-worst order with std::sort.
Definition at line 24 of file database.h.
Definition at line 17 of file database.h.
float vt::Match::score |
Definition at line 18 of file database.h.