#include <DistSearchMethod.hpp>
Public Methods | |
DistSearchMethod () | |
DistSearchMethod (const Index *index, RetMethodManager::RetModel defmodel=RetMethodManager::INQUERY) | |
~DistSearchMethod () | |
void | setReturnCount (int retCount) |
set the return documents number; | |
void | setIndex (const 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 (const Query &qry, const 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 (const Query &qry, const 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 (const Index *ind, const 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 | |
const Index * | csindex |
RetMethodManager::RetModel | defrt |
const 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;
|
|
|
|
|
|
|
|
|
|
|
|
|