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


lucene::search::PhraseQuery Class Reference

#include <PhraseQuery.h>

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

List of all members.

Classes

class  PhraseWeight

Public Member Functions

 PhraseQuery ()
 ~PhraseQuery ()
const TCHAR * getQueryName () const
void setSlop (const int32_t s)
int32_t getSlop () const
void add (lucene::index::Term *term)
void add (lucene::index::Term *term, int32_t position)
float_t sumOfSquaredWeights (Searcher *searcher)
void normalize (const float_t norm)
Scorerscorer (lucene::index::IndexReader *reader)
lucene::index::Term ** getTerms () const
int32_t * getPositions () const
void getPositions (Array< int32_t > &result) const
const TCHAR * getFieldName () const
TCHAR * toString (const TCHAR *f) 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 (lucene::search::Query *) const
size_t hashCode () const

Static Public Member Functions

static const TCHAR * getClassName ()

Protected Member Functions

Weight_createWeight (Searcher *searcher)
 Expert: Constructs an appropriate Weight implementation for this query.
 PhraseQuery (const PhraseQuery &clone)

Friends

class PhraseWeight

Constructor & Destructor Documentation

lucene::search::PhraseQuery::PhraseQuery ( const PhraseQuery clone  )  [protected]
lucene::search::PhraseQuery::PhraseQuery (  ) 
lucene::search::PhraseQuery::~PhraseQuery (  ) 

Member Function Documentation

Weight* lucene::search::PhraseQuery::_createWeight ( Searcher searcher  )  [protected, virtual]

Expert: Constructs an appropriate Weight implementation for this query.

Only implemented by primitive queries, which re-write to themselves. This is an Internal function

Reimplemented from lucene::search::Query.

void lucene::search::PhraseQuery::add ( lucene::index::Term term,
int32_t  position 
)
void lucene::search::PhraseQuery::add ( lucene::index::Term term  ) 
Query* lucene::search::PhraseQuery::clone (  )  const [virtual]

Returns a clone of this query.

Implements lucene::search::Query.

bool lucene::search::PhraseQuery::equals ( lucene::search::Query  )  const
static const TCHAR* lucene::search::PhraseQuery::getClassName (  )  [static]
const TCHAR* lucene::search::PhraseQuery::getFieldName (  )  const [inline]
void lucene::search::PhraseQuery::getPositions ( Array< int32_t > &  result  )  const
Deprecated:
. use getPositions(Array<int32_t>& result)
int32_t* lucene::search::PhraseQuery::getPositions (  )  const
const TCHAR* lucene::search::PhraseQuery::getQueryName (  )  const [virtual]

Implements lucene::search::Query.

int32_t lucene::search::PhraseQuery::getSlop (  )  const [inline]
lucene:: index ::Term** lucene::search::PhraseQuery::getTerms (  )  const
size_t lucene::search::PhraseQuery::hashCode (  )  const [virtual]

Implements lucene::search::Query.

void lucene::search::PhraseQuery::normalize ( const float_t  norm  ) 
Scorer* lucene::search::PhraseQuery::scorer ( lucene::index::IndexReader reader  ) 
void lucene::search::PhraseQuery::setSlop ( const int32_t  s  )  [inline]
float_t lucene::search::PhraseQuery::sumOfSquaredWeights ( Searcher searcher  ) 
TCHAR* lucene::search::PhraseQuery::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.


Friends And Related Function Documentation

friend class PhraseWeight [friend]

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

clucene.sourceforge.net