rules can hold other QueryCondition objects, so conditions nest to
express mixed logic such as A and (B or C). Pass a QueryCondition as
the filter argument of get_span_fields() on
Application, which allows at
most 3 levels of nesting and 10 rules.
Example
Attributes
QueryConditionType
How
rules are combined; defaults to AND.List[QueryRule | QueryCondition]
Rules and nested conditions to combine.
add_rule()
Add a filter rule.Parameters
QueryRule | QueryCondition
required
Rule or nested condition to append to
rules.add_rules()
Add multiple filter rules.Parameters
List[QueryRule | QueryCondition]
required
Rules or nested conditions to append to
rules, in order.