#include <DistSearchMethod.hpp>
Public Methods | |
DistSearchMethod () | |
DistSearchMethod (Index *index, RetMethodManager::RetModel defmodel=RetMethodManager::CORI_DOC) | |
~DistSearchMethod () | |
void | setReturnCount (int retCount) |
set the return documents number; | |
void | setIndex (Index *index) |
use the given collection selection index | |
void | setDefaultRetMethod (RetMethodManager::RetModel rt) |
use the given retrieval method to do search if none is specified for an index | |
void | scoreIndexSet (Query &qry, IndexedRealVector &indexset, DocScoreVector **results) |
score every document in each index in the indexset for the given query and return results in the results vector | |
void | scoreIndexSet (Query &qry, vector< string > &indexset, DocScoreVector **results) |
score every document in each index in the indexset for the given query and return results in the results vector | |
Static Public Methods | |
void | indexToID (Index *ind, IndexedRealVector *ivec, DocScoreVector *dvec) |
convert the given IndexRealVector into a DocScoreVector. | |
Protected Methods | |
void | doSingleRetr () |
assuming all required parameters for index and retrieval method are on the top stack, do retrieval on this single index using the given query. | |
Protected Attributes | |
Index * | csindex |
RetMethodManager::RetModel | defrt |
Query * | query |
DocScoreVector ** | allres |
int | reslen |
int | returnCount |
|
|
|
|
|
|
|
assuming all required parameters for index and retrieval method are on the top stack, do retrieval on this single index using the given query.
|
|
convert the given IndexRealVector into a DocScoreVector.
|
|
score every document in each index in the indexset for the given query and return results in the results vector
|
|
score every document in each index in the indexset for the given query and return results in the results vector although the scores in indexset probably won't be used, take an IndexedRealVector here because that's what's returned by the RetrievalMethod so would make writing code easier. the indexes in indexset should correspond to indexes in the collection selection index. |
|
use the given retrieval method to do search if none is specified for an index
|
|
use the given collection selection index
|
|
set the return documents number;
|
|
|
|
|
|
|
|
|
|
|
|
|