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


lucene::search::RangeQuery Class Reference

Constructs a query selecting all terms greater than lowerTerm but less than upperTerm. More...

#include <RangeQuery.h>

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

List of all members.

Public Member Functions

 RangeQuery (lucene::index::Term *LowerTerm, lucene::index::Term *UpperTerm, const bool Inclusive)
 ~RangeQuery ()
const TCHAR * getQueryName () const
Queryrewrite (lucene::index::IndexReader *reader)
 Expert: called to re-write queries into primitive queries.
Querycombine (Query **queries)
TCHAR * toString (const TCHAR *field) const
 Prints a query to a string, with field as the default field for terms.
Queryclone () const
 Returns a clone of this query.
bool equals (Query *other) const
lucene::index::TermgetLowerTerm (bool pointer=true) const
lucene::index::TermgetUpperTerm (bool pointer=true) const
bool isInclusive () const
const TCHAR * getField () const
size_t hashCode () const

Static Public Member Functions

static const TCHAR * getClassName ()

Protected Member Functions

 RangeQuery (const RangeQuery &clone)

Detailed Description

Constructs a query selecting all terms greater than lowerTerm but less than upperTerm.

There must be at least one term and either term may be null, in which case there is no bound on that side, but if there are two terms, both terms must be for the same field.


Constructor & Destructor Documentation

lucene::search::RangeQuery::RangeQuery ( const RangeQuery clone  )  [protected]
lucene::search::RangeQuery::RangeQuery ( lucene::index::Term LowerTerm,
lucene::index::Term UpperTerm,
const bool  Inclusive 
)
lucene::search::RangeQuery::~RangeQuery (  ) 

Member Function Documentation

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

Returns a clone of this query.

Implements lucene::search::Query.

Query* lucene::search::RangeQuery::combine ( Query **  queries  ) 
bool lucene::search::RangeQuery::equals ( Query other  )  const
static const TCHAR* lucene::search::RangeQuery::getClassName (  )  [static]
const TCHAR* lucene::search::RangeQuery::getField (  )  const
lucene:: index ::Term* lucene::search::RangeQuery::getLowerTerm ( bool  pointer = true  )  const
const TCHAR* lucene::search::RangeQuery::getQueryName (  )  const [virtual]

Implements lucene::search::Query.

lucene:: index ::Term* lucene::search::RangeQuery::getUpperTerm ( bool  pointer = true  )  const
size_t lucene::search::RangeQuery::hashCode (  )  const [virtual]

Implements lucene::search::Query.

bool lucene::search::RangeQuery::isInclusive (  )  const
Query* lucene::search::RangeQuery::rewrite ( lucene::index::IndexReader reader  )  [virtual]

Expert: called to re-write queries into primitive queries.

Reimplemented from lucene::search::Query.

TCHAR* lucene::search::RangeQuery::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