CLucene - a full-featured, c++ search engine
API Documentation
#include <PhraseQuery.h>

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) |
| Scorer * | scorer (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. | |
| Query * | clone () 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 |
| lucene::search::PhraseQuery::PhraseQuery | ( | const PhraseQuery & | clone | ) | [protected] |
| lucene::search::PhraseQuery::PhraseQuery | ( | ) |
| lucene::search::PhraseQuery::~PhraseQuery | ( | ) |
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] |
| bool lucene::search::PhraseQuery::equals | ( | lucene::search::Query * | ) | const [virtual] |
Implements lucene::search::Query.
| 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 |
| 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.
friend class PhraseWeight [friend] |