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 assumed to be the default field and omitted. | |
size_t | hashCode () const |
Static Public Member Functions | |
static const TCHAR * | getClassName () |
Protected Member Functions | |
PrefixQuery (const PrefixQuery &clone) |
A PrefixQuery is built by QueryParser for input like app*
.
lucene::search::PrefixQuery::PrefixQuery | ( | const PrefixQuery & | clone | ) | [protected] |
lucene::search::PrefixQuery::PrefixQuery | ( | lucene::index::Term * | Prefix | ) |
lucene::search::PrefixQuery::~PrefixQuery | ( | ) |
const TCHAR* lucene::search::PrefixQuery::getQueryName | ( | ) | 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.
Expert: called when re-writing queries under MultiSearcher.
Only implemented by derived queries, with no _createWeight(Searcher) implementatation.
Reimplemented from 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.
Query* lucene::search::PrefixQuery::clone | ( | ) | const [virtual] |
bool lucene::search::PrefixQuery::equals | ( | Query * | other | ) | const [virtual] |
Implements lucene::search::Query.
TCHAR* lucene::search::PrefixQuery::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.
size_t lucene::search::PrefixQuery::hashCode | ( | ) | const [virtual] |
Implements lucene::search::Query.