CLucene - a full-featured, c++ search engine
API Documentation
#include <BooleanClause.h>
Public Types | |
enum | Occur { MUST = 1, SHOULD = 2, MUST_NOT = 4 } |
Specifies how clauses are to occur in matching documents. More... | |
Public Member Functions | |
int32_t | getClauseCount () |
BooleanClause (Query *q, const bool DeleteQuery, const bool req, const bool p) | |
Constructs a BooleanClause with query q , required r and prohibited p . | |
BooleanClause (const BooleanClause &clone) | |
BooleanClause (Query *q, const bool DeleteQuery, Occur o) | |
Constructs a BooleanClause. | |
BooleanClause * | clone () const |
~BooleanClause () | |
bool | equals (const BooleanClause *other) const |
Returns true if o is equal to this. | |
size_t | hashCode () const |
Returns a hash code value for this object. | |
Occur | getOccur () const |
void | setOccur (Occur o) |
Query * | getQuery () const |
void | setQuery (Query *q) |
bool | isProhibited () const |
bool | isRequired () const |
TCHAR * | toString () const |
Data Fields | |
bool | deleteQuery |
bool | required |
If true, documents documents which do not match this sub-query will not match the boolean query. | |
bool | prohibited |
If true, documents documents which do match this sub-query will not match the boolean query. |
Specifies how clauses are to occur in matching documents.
MUST |
Use this operator for clauses that must appear in the matching documents.
|
SHOULD |
Use this operator for clauses that should appear in the matching documents.
For a BooleanQuery with no
|
MUST_NOT |
Use this operator for clauses that must not appear in the matching documents.
Note that it is not possible to search for queries that only consist of a |
lucene::search::BooleanClause::BooleanClause | ( | Query * | q, | |
const bool | DeleteQuery, | |||
const bool | req, | |||
const bool | p | |||
) |
Constructs a BooleanClause with query q
, required r
and prohibited p
.
lucene::search::BooleanClause::BooleanClause | ( | const BooleanClause & | clone | ) |
Constructs a BooleanClause.
lucene::search::BooleanClause::~BooleanClause | ( | ) |
int32_t lucene::search::BooleanClause::getClauseCount | ( | ) |
BooleanClause* lucene::search::BooleanClause::clone | ( | ) | const |
bool lucene::search::BooleanClause::equals | ( | const BooleanClause * | other | ) | const |
Returns true if o
is equal to this.
size_t lucene::search::BooleanClause::hashCode | ( | ) | const |
Returns a hash code value for this object.
Occur lucene::search::BooleanClause::getOccur | ( | ) | const |
void lucene::search::BooleanClause::setOccur | ( | Occur | o | ) |
Query* lucene::search::BooleanClause::getQuery | ( | ) | const |
void lucene::search::BooleanClause::setQuery | ( | Query * | q | ) |
bool lucene::search::BooleanClause::isProhibited | ( | ) | const |
bool lucene::search::BooleanClause::isRequired | ( | ) | const |
TCHAR* lucene::search::BooleanClause::toString | ( | ) | const |
If true, documents documents which do not match this sub-query will not match the boolean query.
If true, documents documents which do match this sub-query will not match the boolean query.