#include <MatchInfo.hpp>
Public Methods | |
| virtual | ~MatchInfo () |
| clean up. | |
| int | count () |
| number of matches | |
| void | startIteration () |
| Iteration support (restartable). | |
| bool | hasMore () |
| have any more? | |
| TMatch | nextMatch () |
| Advance to next document, return false if no more docs. | |
Static Public Methods | |
| MatchInfo * | getMatches (Index &ind, Query &qry, int docID) |
Private Methods | |
| MatchInfo () | |
| Make an empty one. | |
| void | add (int tid, int position, int start=-1, int end=-1) |
| add an entry | |
| void | sort () |
| sort the list | |
Private Attributes | |
| vector< TMatch > | matchList |
| list of matches in document | |
| vector< TMatch >::iterator | iter |
| iterator for list of matches in document | |
|
|
clean up.
|
|
|
Make an empty one.
|
|
||||||||||||||||||||
|
add an entry
|
|
|
number of matches
|
|
||||||||||||||||
|
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. |
|
|
have any more?
|
|
|
Advance to next document, return false if no more docs.
|
|
|
sort the list
|
|
|
Iteration support (restartable).
|
|
|
iterator for list of matches in document
|
|
|
list of matches in document
|
1.2.16