#include <RetrievalMethod.hpp>
Inheritance diagram for RetrievalMethod:
Public Methods | |
RetrievalMethod (const Index &collectionIndex) | |
virtual | ~RetrievalMethod () |
virtual QueryRep * | computeQueryRep (const Query &qry)=0 |
compute the representation for a query, semantics defined by subclass | |
virtual double | scoreDoc (const QueryRep &qry, DOCID_T docID)=0 |
Score a document identified by the id w.r.t. a query rep. | |
virtual void | scoreDocSet (const QueryRep &qry, const DocIDSet &docSet, IndexedRealVector &results) |
Score a set of documents w.r.t. a query rep (e.g. for re-ranking). | |
virtual void | scoreCollection (const QueryRep &qry, IndexedRealVector &results) |
Score all documents in the collection. | |
virtual void | updateQuery (QueryRep &qryRep, const DocIDSet &relDocs)=0 |
update the query, feedback support | |
Protected Attributes | |
const Index & | ind |
|
|
|
|
|
compute the representation for a query, semantics defined by subclass
Implemented in IndriRetMethod, StructQueryRetMethod, TextQueryRetMethod, and XLingRetMethod. |
|
Score all documents in the collection. The default implementation provided by this class is to call function scoreDoc, thus to score documents one by one. This is inefficient, so usually a subclass should override this method if a more efficient scoring, e.g., based on inverted index, is possible. Reimplemented in CORIRetMethod, IndriRetMethod, StructQueryRetMethod, TextQueryRetMethod, and XLingRetMethod. |
|
Score a document identified by the id w.r.t. a query rep.
Implemented in IndriRetMethod, StructQueryRetMethod, TextQueryRetMethod, and XLingRetMethod. |
|
Score a set of documents w.r.t. a query rep (e.g. for re-ranking). The default implementation provided by this class is to call function scoreDoc Reimplemented in IndriRetMethod. |
|
update the query, feedback support
Implemented in IndriRetMethod, StructQueryRetMethod, TextQueryRetMethod, and XLingRetMethod. |
|
|