CLucene - a full-featured, c++ search engine
API Documentation
#include <TermQuery.h>
Public Member Functions | |
TermQuery (lucene::index::Term *t) | |
~TermQuery () | |
const TCHAR * | getQueryName () const |
lucene::index::Term * | getTerm (bool pointer=true) const |
TCHAR * | toString (const TCHAR *field) const |
Prints a query to a string, with field assumed to be the default field and omitted. | |
bool | equals (Query *other) const |
Query * | clone () const |
Returns a clone of this query. | |
size_t | hashCode () const |
Returns a hash code value for this object. | |
Static Public Member Functions | |
static const TCHAR * | getClassName () |
Protected Member Functions | |
Weight * | _createWeight (Searcher *searcher) |
Expert: Constructs an appropriate Weight implementation for this query. | |
TermQuery (const TermQuery &clone) |
This may be combined with other terms with a BooleanQuery.
lucene::search::TermQuery::TermQuery | ( | const TermQuery & | clone | ) | [protected] |
lucene::search::TermQuery::TermQuery | ( | lucene::index::Term * | t | ) |
lucene::search::TermQuery::~TermQuery | ( | ) |
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves. This is an Internal function
Reimplemented from lucene::search::Query.
static const TCHAR* lucene::search::TermQuery::getClassName | ( | ) | [static] |
const TCHAR* lucene::search::TermQuery::getQueryName | ( | ) | const [virtual] |
Implements lucene::search::Query.
lucene:: index ::Term* lucene::search::TermQuery::getTerm | ( | bool | pointer = true |
) | const |
TCHAR* lucene::search::TermQuery::toString | ( | const TCHAR * | field | ) | const [virtual] |
Prints a query to a string, with field
assumed to be the default field and omitted.
The representation used is one that is supposed to be readable by QueryParser. However, there are the following limitations:
Implements lucene::search::Query.
bool lucene::search::TermQuery::equals | ( | Query * | other | ) | const [virtual] |
Implements lucene::search::Query.
Query* lucene::search::TermQuery::clone | ( | ) | const [virtual] |
size_t lucene::search::TermQuery::hashCode | ( | ) | const [virtual] |