#include <StructQueryRetMethod.hpp>
Inheritance diagram for StructQueryRetMethod:
Public Methods | |
StructQueryRetMethod (const Index &ind) | |
virtual | ~StructQueryRetMethod () |
virtual StructQueryRep * | computeStructQueryRep (const TermQuery &qry)=0 |
compute the query representation for a text query | |
virtual QueryRep * | computeQueryRep (const Query &qry) |
overriding abstract class method | |
virtual double | scoreDoc (const QueryRep &qry, DOCID_T docID) |
score the query against the given document id. | |
virtual void | scoreCollection (const QueryRep &qry, IndexedRealVector &results) |
score the query against the collection. | |
virtual DocumentRep * | computeDocRep (DOCID_T docID)=0 |
virtual ScoreFunction * | scoreFunc ()=0 |
return the scoring function pointer | |
virtual void | updateQuery (QueryRep &qryRep, const DocIDSet &relDocs) |
update the query | |
virtual void | updateStructQuery (StructQueryRep &qryRep, const DocIDSet &relDocs)=0 |
virtual void | scoreInvertedIndex (const QueryRep &qryRep, IndexedRealVector &scores, bool scoreAll=false) |
Scoring with the inverted index. |
q = op(q1,q2,...,qN)
where qi can be an structured query node or a term node, and a document d
, StructQueryRetMethod
assumes the following general scoring function:
s(q,d) = g(s(q1,d), ..., s(qN,d))That is, the score of a document
d
against a query q
is a function g
of the scores of each child query node in qi
, where g
is the composition function for q
, such as average.
|
|
|
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance) Implemented in InQueryRetMethod. |
|
overriding abstract class method
Implements RetrievalMethod. |
|
compute the query representation for a text query
Implemented in InQueryRetMethod. |
|
score the query against the collection.
Reimplemented from RetrievalMethod. |
|
score the query against the given document id.
Implements RetrievalMethod. |
|
return the scoring function pointer
Implemented in InQueryRetMethod. |
|
Scoring with the inverted index.
|
|
update the query
Implements RetrievalMethod. |
|
Modify/update the query representation based on a set (presumably) relevant documents Implemented in InQueryRetMethod. |