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

Public Methods | |
| StructQueryRep (StructQuery &qry, Index &dbIndex, double dbelief=0) | |
| Parse the text representation into a structured query rep. | |
| virtual | ~StructQueryRep () |
| virtual QueryNode * | topnode () |
| Get the topnode of the query parse tree. | |
| virtual void | setTopnode (QueryNode *qn) |
| Set the topnode of the query parse tree. | |
Private Types | |
| typedef QueryNode *(StructQueryRep::* | getFunc )(StructQuery &, TokenTerm *, double) |
| pointer to member function for getting a node. | |
Private Methods | |
| QnList * | getChildren (StructQuery &qry, getFunc fn, bool weigh=false) |
| Parse the text representation of the children of a query node. | |
| QueryNode * | getQryNode (StructQuery &qry, TokenTerm *tok, double w) |
| Parse the text representation of a weighted query node. | |
| QueryNode * | getProxQryNode (StructQuery &qry, TokenTerm *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 |
| double | dw |
| default weight. | |
| Index & | ind |
| Our index. | |
| int | numDocs |
| number of docs in collection (reduce calls to docCount. | |
|
|
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.
|
|
|
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.
|
|
|
This is an accident waiting to happen! dmf index of top of qStack. |
1.2.16