CLucene - a full-featured, c++ search engine
API Documentation
A Query that matches documents containing a term. More...
#include <TermQuery.h>
Classes | |
| class | TermWeight |
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 as the default field for terms. | |
| 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) | |
A Query that matches documents containing a term.
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.
| Query* lucene::search::TermQuery::clone | ( | ) | const [virtual] |
Returns a clone of this query.
Implements lucene::search::Query.
| bool lucene::search::TermQuery::equals | ( | Query * | other | ) | const |
| 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 |
| size_t lucene::search::TermQuery::hashCode | ( | ) | const [virtual] |
Returns a hash code value for this object.
Implements lucene::search::Query.
| TCHAR* lucene::search::TermQuery::toString | ( | const TCHAR * | field | ) | const [virtual] |
Prints a query to a string, with field as the default field for terms.
The representation used is one that is readable by QueryParser (although, if the query was created by the parser, the printed representation may not be exactly what was parsed).
Implements lucene::search::Query.