A clause in a BooleanQuery.
More...
#include <BooleanClause.h>
A clause in a BooleanQuery.
◆ Occur
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.
|
◆ BooleanClause()
Lucene::BooleanClause::BooleanClause |
( |
const QueryPtr & |
query, |
|
|
Occur |
occur |
|
) |
| |
◆ ~BooleanClause()
virtual Lucene::BooleanClause::~BooleanClause |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::BooleanClause::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ equals()
virtual bool Lucene::BooleanClause::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
◆ getClassName()
virtual String Lucene::BooleanClause::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getOccur()
Occur Lucene::BooleanClause::getOccur |
( |
| ) |
|
◆ getQuery()
QueryPtr Lucene::BooleanClause::getQuery |
( |
| ) |
|
◆ hashCode()
virtual int32_t Lucene::BooleanClause::hashCode |
( |
| ) |
|
|
virtual |
◆ isProhibited()
bool Lucene::BooleanClause::isProhibited |
( |
| ) |
|
◆ isRequired()
bool Lucene::BooleanClause::isRequired |
( |
| ) |
|
◆ setOccur()
void Lucene::BooleanClause::setOccur |
( |
Occur |
occur | ) |
|
◆ setQuery()
void Lucene::BooleanClause::setQuery |
( |
const QueryPtr & |
query | ) |
|
◆ shared_from_this()
boost::shared_ptr< BooleanClause > Lucene::BooleanClause::shared_from_this |
( |
| ) |
|
|
inline |
◆ toString()
virtual String Lucene::BooleanClause::toString |
( |
| ) |
|
|
virtual |
◆ occur
Occur Lucene::BooleanClause::occur |
|
protected |
◆ query
The query whose matching documents are combined by the boolean query.
The documentation for this class was generated from the following file: