Main Page   Namespace List   Class Hierarchy   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 (InvFPIndex &ind, ScoreAccumulator &accumulator)
virtual ~StructQueryRetMethod ()
virtual StructQueryRepcomputeStructQueryRep (StructQuery &qry)=0
 compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)

virtual QueryRepcomputeQueryRep (Query &qry)
 overriding abstract class method

virtual double scoreDocVector (StructQueryRep &qRep, int docID, FreqVector &docVector)
 score the query against the given document vector.

virtual double scoreDoc (QueryRep &qry, int docID)
 score the query against the given document id.

virtual void scoreCollection (QueryRep &qry, IndexedRealVector &results)
 score the query against the collection.

virtual DocumentRepcomputeDocRep (int docID)=0
 compute the doc representation (caller responsible for deleting the memory of the generated new instance)

virtual ScoreFunctionscoreFunc ()=0
 return the scoring function pointer

virtual void updateQuery (QueryRep &qryRep, DocIDSet &relDocs)
 update the query

virtual void updateStructQuery (StructQueryRep &qryRep, DocIDSet &relDocs)=0
 Modify/update the query representation based on a set (presumably) relevant documents.

virtual void scoreInvertedIndex (QueryRep &qryRep, IndexedRealVector &scores, bool scoreAll=false)
 Efficient scoring with the inverted index.


Protected Attributes

ScoreAccumulatorscAcc
InvFPIndexindex

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 InvFPIndex   ind,
ScoreAccumulator   accumulator
[inline]
 

virtual StructQueryRetMethod::~StructQueryRetMethod   [inline, virtual]
 


Member Function Documentation

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

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

Implemented in InQueryRetMethod.

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

overriding abstract class method

Implements RetrievalMethod.

virtual StructQueryRep* StructQueryRetMethod::computeStructQueryRep StructQuery   qry [pure virtual]
 

compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)

Implemented in InQueryRetMethod.

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

score the query against the collection.

Reimplemented from RetrievalMethod.

double StructQueryRetMethod::scoreDoc QueryRep   qry,
int    docID
[virtual]
 

score the query against the given document id.

Implements RetrievalMethod.

double StructQueryRetMethod::scoreDocVector StructQueryRep   qRep,
int    docID,
FreqVector   docVector
[virtual]
 

score the query against the given document vector.

virtual ScoreFunction* StructQueryRetMethod::scoreFunc   [pure virtual]
 

return the scoring function pointer

Implemented in InQueryRetMethod.

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

Efficient scoring with the inverted index.

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

update the query

Implements RetrievalMethod.

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

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

Implemented in InQueryRetMethod.


Member Data Documentation

InvFPIndex& StructQueryRetMethod::index [protected]
 

ScoreAccumulator& StructQueryRetMethod::scAcc [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 30 14:14:22 2002 for LEMUR by doxygen1.2.18