CLucene - a full-featured, c++ search engine
API Documentation
#include <PrefixQuery.h>

Public Member Functions | |
| PrefixQuery (lucene::index::Term *Prefix) | |
| ~PrefixQuery () | |
| const TCHAR * | getQueryName () const |
| lucene::index::Term * | getPrefix (bool pointer=true) |
| Returns the prefix of this query. | |
| Query * | combine (Query **queries) |
| Expert: called when re-writing queries under MultiSearcher. | |
| Query * | rewrite (lucene::index::IndexReader *reader) |
| Expert: called to re-write queries into primitive queries. | |
| Query * | clone () const |
| Returns a clone of this query. | |
| bool | equals (Query *other) const |
| TCHAR * | toString (const TCHAR *field) const |
Prints a query to a string, with field as the default field for terms. | |
| size_t | hashCode () const |
Static Public Member Functions | |
| static const TCHAR * | getClassName () |
Protected Member Functions | |
| PrefixQuery (const PrefixQuery &clone) | |
| lucene::search::PrefixQuery::PrefixQuery | ( | const PrefixQuery & | clone | ) | [protected] |
| lucene::search::PrefixQuery::PrefixQuery | ( | lucene::index::Term * | Prefix | ) |
| lucene::search::PrefixQuery::~PrefixQuery | ( | ) |
| Query* lucene::search::PrefixQuery::clone | ( | ) | const [virtual] |
Expert: called when re-writing queries under MultiSearcher.
Only implemented by derived queries, with no _createWeight(Searcher) implementatation.
Reimplemented from lucene::search::Query.
| bool lucene::search::PrefixQuery::equals | ( | Query * | other | ) | const [virtual] |
Implements lucene::search::Query.
| static const TCHAR* lucene::search::PrefixQuery::getClassName | ( | ) | [static] |
| lucene:: index ::Term* lucene::search::PrefixQuery::getPrefix | ( | bool | pointer = true |
) |
Returns the prefix of this query.
| const TCHAR* lucene::search::PrefixQuery::getQueryName | ( | ) | const [virtual] |
Implements lucene::search::Query.
| size_t lucene::search::PrefixQuery::hashCode | ( | ) | const [virtual] |
Implements lucene::search::Query.
| Query* lucene::search::PrefixQuery::rewrite | ( | lucene::index::IndexReader * | reader | ) | [virtual] |
Expert: called to re-write queries into primitive queries.
Reimplemented from lucene::search::Query.
| TCHAR* lucene::search::PrefixQuery::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.