CLucene - a full-featured, c++ search engine
API Documentation
#include <WildcardQuery.h>
Public Member Functions | |
WildcardQuery (lucene::index::Term *term) | |
~WildcardQuery () | |
const TCHAR * | getQueryName () const |
size_t | hashCode () const |
bool | equals (Query *other) const |
Query * | clone () const |
Returns a clone of this query. | |
Query * | rewrite (lucene::index::IndexReader *reader) |
Expert: called to re-write queries into primitive queries. | |
Static Public Member Functions | |
static const TCHAR * | getClassName () |
Protected Member Functions | |
FilteredTermEnum * | getEnum (lucene::index::IndexReader *reader) |
Construct the enumeration to be used, expanding the pattern term. | |
WildcardQuery (const WildcardQuery &clone) |
Supported wildcards are *
, which matches any character sequence (including the empty one), and ?
, which matches any single character. Note this query can be slow, as it needs to iterate over all terms. In order to prevent extremely slow WildcardQueries, a Wildcard term must not start with one of the wildcards *
or ?
.
lucene::search::WildcardQuery::WildcardQuery | ( | const WildcardQuery & | clone | ) | [protected] |
lucene::search::WildcardQuery::WildcardQuery | ( | lucene::index::Term * | term | ) |
lucene::search::WildcardQuery::~WildcardQuery | ( | ) |
FilteredTermEnum* lucene::search::WildcardQuery::getEnum | ( | lucene::index::IndexReader * | reader | ) | [protected, virtual] |
Construct the enumeration to be used, expanding the pattern term.
Implements lucene::search::MultiTermQuery.
const TCHAR* lucene::search::WildcardQuery::getQueryName | ( | ) | const [virtual] |
Implements lucene::search::Query.
static const TCHAR* lucene::search::WildcardQuery::getClassName | ( | ) | [static] |
size_t lucene::search::WildcardQuery::hashCode | ( | ) | const [virtual] |
Implements lucene::search::Query.
bool lucene::search::WildcardQuery::equals | ( | Query * | other | ) | const [virtual] |
Implements lucene::search::Query.
Query* lucene::search::WildcardQuery::clone | ( | ) | const [virtual] |
Query* lucene::search::WildcardQuery::rewrite | ( | lucene::index::IndexReader * | reader | ) | [virtual] |
Expert: called to re-write queries into primitive queries.
Reimplemented from lucene::search::MultiTermQuery.