#include #include "QueryParser.h" #include "Query.h" #include "ResultList.h" // THIS IS JUST AN EXAMPLE, NOT A TEST // main() { BooleanQueryParser b; Query *q = b.Parse("foo not (bar* or 'baz') and \"voo doo\""); if(q) { cout << "Evaluating " << q->GetLogicalWords() << endl; ResultList *l = q->Evaluate(); if(l) { cout << l->Count() << "matches" << endl; delete l; } } else { cerr << "argh: " << b.Error() << endl; } }