CLucene - a full-featured, c++ search engine
API Documentation


lucene::search::PrefixQuery Class Reference

#include <PrefixQuery.h>

Inheritance diagram for lucene::search::PrefixQuery:
lucene::search::Query lucene::debug::LuceneBase

List of all members.

Public Member Functions

 PrefixQuery (lucene::index::Term *Prefix)
 ~PrefixQuery ()
const TCHAR * getQueryName () const
lucene::index::TermgetPrefix (bool pointer=true)
 Returns the prefix of this query.
Querycombine (Query **queries)
Queryrewrite (lucene::index::IndexReader *reader)
 Expert: called to re-write queries into primitive queries.
Queryclone () 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)

Constructor & Destructor Documentation

lucene::search::PrefixQuery::PrefixQuery ( const PrefixQuery clone  )  [protected]
lucene::search::PrefixQuery::PrefixQuery ( lucene::index::Term Prefix  ) 
lucene::search::PrefixQuery::~PrefixQuery (  ) 

Member Function Documentation

Query* lucene::search::PrefixQuery::clone (  )  const [virtual]

Returns a clone of this query.

Implements lucene::search::Query.

Query* lucene::search::PrefixQuery::combine ( Query **  queries  ) 
bool lucene::search::PrefixQuery::equals ( Query other  )  const
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.


The documentation for this class was generated from the following file:

clucene.sourceforge.net