Class: module:models/Query

module:models/Query()

new module:models/Query()

Constructs a new Query. A boolean query allows to construct 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, which must match.

Type:
Source:

(inner) must_not :Array.<module:models/Query>

List of queries, which must not match.

Type:
Source:

(inner) should :Array.<module:models/Query>

List of queries, which should match.

Type:
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Query}

Constructs a Query 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/Query

Optional instance to populate.

Source:
Returns:

The populated Query instance.

Type
module:models/Query