A clause in a BooleanQuery.
More...
#include <BooleanClause.h>
Protected Attributes |
QueryPtr | query |
| The query whose matching documents are combined by the boolean query.
|
Occur | occur |
Detailed Description
A clause in a BooleanQuery.
Member Enumeration Documentation
Specifies how clauses are to occur in matching documents.
- Enumerator:
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 clauses one or more SHOULD clauses must match a document for the BooleanQuery to match.
- See Also
- BooleanQuery::setMinimumNumberShouldMatch
|
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 MUST_NOT clause.
|
Constructor & Destructor Documentation
Lucene::BooleanClause::BooleanClause |
( |
const QueryPtr & |
query, |
|
|
Occur |
occur |
|
) |
| |
virtual Lucene::BooleanClause::~BooleanClause |
( |
| ) |
|
|
virtual |
Member Function Documentation
static String Lucene::BooleanClause::_getClassName |
( |
| ) |
|
|
inlinestatic |
virtual bool Lucene::BooleanClause::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
virtual String Lucene::BooleanClause::getClassName |
( |
| ) |
|
|
inlinevirtual |
Occur Lucene::BooleanClause::getOccur |
( |
| ) |
|
QueryPtr Lucene::BooleanClause::getQuery |
( |
| ) |
|
virtual int32_t Lucene::BooleanClause::hashCode |
( |
| ) |
|
|
virtual |
bool Lucene::BooleanClause::isProhibited |
( |
| ) |
|
bool Lucene::BooleanClause::isRequired |
( |
| ) |
|
void Lucene::BooleanClause::setOccur |
( |
Occur |
occur | ) |
|
void Lucene::BooleanClause::setQuery |
( |
const QueryPtr & |
query | ) |
|
boost::shared_ptr< BooleanClause > Lucene::BooleanClause::shared_from_this |
( |
| ) |
|
|
inline |
virtual String Lucene::BooleanClause::toString |
( |
| ) |
|
|
virtual |
Field Documentation
Occur Lucene::BooleanClause::occur |
|
protected |
The query whose matching documents are combined by the boolean query.
The documentation for this class was generated from the following file: