#include <MatchInfo.hpp>
Public Member Functions | |
virtual | ~MatchInfo () |
clean up. | |
int | count () const |
number of matches | |
Static Public Member Functions | |
MatchInfo * | getMatches (const Index &ind, const Query &qry, DOCID_T docID) |
Advance to next document, return false if no more docs. | |
Private Member Functions | |
MatchInfo () | |
Make an empty one. | |
void | add (TERMID_T tid, int position, int start=-1, int end=-1) |
add an entry | |
void | sort () |
sort the list |
Provides a list of match offsets (token based). Also provides byte offsets in source text when a DocumentManager is available to provide the raw document text. If the DocumentManager is a KeyfileDocMgr, the raw document text is not parsed, the offsets are retrieved directly.
|
clean up.
|
|
Make an empty one.
|
|
add an entry
|
|
number of matches
|
|
Advance to next document, return false if no more docs. Construct the match list for a given query/document pair. Query would be better replaced by the QueryDocument class or some list of internal term ids derived from the input query. |
|
sort the list
|