Home > @poq/sdk-sfcc > 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.
Signature:
export declare class BoolQuery extends BaseModel<BoolQuery>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(params) | Constructs a new instance of the BoolQuery class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| must? | Array<object> | (Optional) List of queries that must match. | |
| mustNot? | Array<object> | (Optional) List of queries that must not match. | |
| should? | Array<object> | (Optional) List of queries that should match. |