#include <StructQueryRep.hpp>
Inheritance diagram for QueryNode:
Public Methods | |
QueryNode (int id, double weight) | |
New QueryNode with given id and weight. | |
QueryNode () | |
New QueryNode with default id (0) and weight (1). | |
QueryNode (double weight) | |
New QueryNode with given weight and default id (0). | |
~QueryNode () | |
clean up internal data. | |
virtual QnList * | children () |
the children of this node | |
virtual int | id () |
the nodes id | |
virtual double | eval (DocumentRep *dRep)=0 |
evaluate the node on the given document, returning a score. | |
virtual double | weight () |
the weight of this node. | |
virtual void | setWeight (double wt) |
virtual double | proximityScore (DocumentRep *dR, double defaultScore) |
Public Attributes | |
int | dCnt |
number of documents this node matched | |
bool * | dList |
array of bool matched docs indexed by docid | |
QnList * | ch |
This node's children list. | |
ProxInfo * | proxList |
This node's ProxInfo list. | |
int | entries |
Number of children in ch. | |
int | nextDoc |
the next document this node matched. | |
Protected Attributes | |
int | it |
query node id | |
double | w |
query node weight |
|
New QueryNode with given id and weight.
|
|
New QueryNode with default id (0) and weight (1).
|
|
New QueryNode with given weight and default id (0).
|
|
clean up internal data.
|
|
the children of this node
|
|
evaluate the node on the given document, returning a score.
Implemented in SumQnode, WsumQnode, AndQnode, OrQnode, NotQnode, MaxQnode, BandQnode, BandNotQnode, FiltRejQnode, FiltReqQnode, TermQnode, OdnQNode, UwnQNode, PassageQNode, and SynQNode. |
|
the nodes id
|
|
evaluate proximity operator against a document or passage. Prunes proxList to remove any entries that are no longer relevant to scoring this operator. |
|
|
|
the weight of this node.
|
|
This node's children list.
|
|
number of documents this node matched
|
|
array of bool matched docs indexed by docid
|
|
Number of children in ch.
|
|
query node id
|
|
the next document this node matched.
|
|
This node's ProxInfo list.
|
|
query node weight
|