new module:models/BoolQuery()
Constructs a new BoolQuery
.
A boolean query allows construction of full logical expression trees consisting of other queries (usually term and text queries). A boolean query basically has 3 sets of clauses that 'must', 'should' and / or 'must not' match. If 'must', 'must_not', or 'should' appear in the same boolean query, they are combined logically using the AND operator.
- Source:
Members
(inner) must :Array.<module:models/Query>
List of queries that must match.
Type:
- Array.<module:models/Query>
- Source:
(inner) must_not :Array.<module:models/Query>
List of queries that must not match.
Type:
- Array.<module:models/Query>
- Source:
(inner) should :Array.<module:models/Query>
List of queries that should match.
Type:
- Array.<module:models/Query>
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/BoolQuery}
Constructs a BoolQuery
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/BoolQuery | Optional instance to populate. |
- Source:
Returns:
The populated BoolQuery
instance.