#include <StructQueryRep.hpp>
Inheritance diagram for lemur::retrieval::StructQueryRep:

| Public Member Functions | |
| StructQueryRep (const lemur::api::TermQuery &qry, const lemur::api::Index &dbIndex, double dbelief=0) | |
| Parse the text representation into a structured query rep. | |
| virtual | ~StructQueryRep () | 
| virtual QueryNode * | topnode () const | 
| virtual void | setTopnode (QueryNode *qn) | 
| Set the topnode of the query parse tree. | |
| Private Types | |
| typedef QueryNode *(StructQueryRep::* | getFunc )(const lemur::api::TermQuery &, const lemur::api::Term *, double) | 
| pointer to member function for getting a node. | |
| Private Member Functions | |
| QnList * | getChildren (const lemur::api::TermQuery &qry, getFunc fn, bool weigh=false) | 
| Parse the text representation of the children of a query node. | |
| QueryNode * | getQryNode (const lemur::api::TermQuery &qry, const lemur::api::Term *tok, double w) | 
| Parse the text representation of a weighted query node. | |
| QueryNode * | getProxQryNode (const lemur::api::TermQuery &qry, const lemur::api::Term *tok, double w=1.0) | 
| Parse the text representation of a proximity query node. | |
| Private Attributes | |
| QueryNode * | topNode | 
| Top node of the query parse tree. | |
| QueryNode * | qStack [100] | 
| stack of query nodes for parsing nested nodes. | |
| int | topqStack | 
| index of top of qStack. | |
| double | dw | 
| default weight. | |
| const lemur::api::Index & | ind | 
| Our index. | |
| int | numDocs | 
| number of docs in collection (reduce calls to docCount. | |
Converts the textual representation of the structured query into a tree structure of QueryNodes. Constructs the proximity lists and DocInfoLists for the individual nodes, pruning the set of documents that will actually need to be scored.
| 
 | 
| pointer to member function for getting a node. 
 | 
| 
 | ||||||||||||||||
| Parse the text representation into a structured query rep. 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||||||
| Parse the text representation of the children of a query node. 
 | 
| 
 | ||||||||||||||||
| Parse the text representation of a proximity query node. 
 | 
| 
 | ||||||||||||||||
| Parse the text representation of a weighted query node. 
 | 
| 
 | 
| Set the topnode of the query parse tree. 
 | 
| 
 | 
| Get the topnode of the query parse tree. maybe this method should return a const object so it can't be deleted but sometimes we want to allow caller to change node's weight. | 
| 
 | 
| default weight. 
 | 
| 
 | 
| Our index. 
 | 
| 
 | 
| number of docs in collection (reduce calls to docCount. 
 | 
| 
 | 
| stack of query nodes for parsing nested nodes. 
 | 
| 
 | 
| Top node of the query parse tree. 
 | 
| 
 | 
| index of top of qStack. This is an accident waiting to happen! dmf | 
 1.3.4
 
1.3.4