Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

StructQueryRetMethod Class Reference

#include <StructQueryRetMethod.hpp>

Inheritance diagram for StructQueryRetMethod:

RetrievalMethod InQueryRetMethod List of all members.

Public Methods

 StructQueryRetMethod (const Index &ind)
virtual ~StructQueryRetMethod ()
virtual StructQueryRepcomputeStructQueryRep (const TermQuery &qry)=0
 compute the query representation for a text query

virtual QueryRepcomputeQueryRep (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 DocumentRepcomputeDocRep (DOCID_T docID)=0
virtual ScoreFunctionscoreFunc ()=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.


Detailed Description

Given a query 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.


Constructor & Destructor Documentation

StructQueryRetMethod::StructQueryRetMethod const Index   ind [inline]
 

virtual StructQueryRetMethod::~StructQueryRetMethod   [inline, virtual]
 


Member Function Documentation

virtual DocumentRep* StructQueryRetMethod::computeDocRep DOCID_T    docID [pure virtual]
 

compute the doc representation (caller responsible for deleting the memory of the generated new instance)

Implemented in InQueryRetMethod.

QueryRep * StructQueryRetMethod::computeQueryRep const Query   qry [inline, virtual]
 

overriding abstract class method

Implements RetrievalMethod.

virtual StructQueryRep* StructQueryRetMethod::computeStructQueryRep const TermQuery   qry [pure virtual]
 

compute the query representation for a text query

Implemented in InQueryRetMethod.

void StructQueryRetMethod::scoreCollection const QueryRep   qry,
IndexedRealVector   results
[virtual]
 

score the query against the collection.

Reimplemented from RetrievalMethod.

double StructQueryRetMethod::scoreDoc const QueryRep   qry,
DOCID_T    docID
[virtual]
 

score the query against the given document id.

Implements RetrievalMethod.

virtual ScoreFunction* StructQueryRetMethod::scoreFunc   [pure virtual]
 

return the scoring function pointer

Implemented in InQueryRetMethod.

void StructQueryRetMethod::scoreInvertedIndex const QueryRep   qryRep,
IndexedRealVector   scores,
bool    scoreAll = false
[virtual]
 

Scoring with the inverted index.

virtual void StructQueryRetMethod::updateQuery QueryRep   qryRep,
const DocIDSet   relDocs
[inline, virtual]
 

update the query

Implements RetrievalMethod.

virtual void StructQueryRetMethod::updateStructQuery StructQueryRep   qryRep,
const DocIDSet   relDocs
[pure virtual]
 

Modify/update the query representation based on a set (presumably) relevant documents

Implemented in InQueryRetMethod.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:56 2004 for Lemur Toolkit by doxygen1.2.18