array should / or
This block is part of the query group and was last modified in core v10.4.28.
Connection Type
This block connects from a query type block. Make sure to connect this block to the appropriate left-hand side connection.
array should / or v10.4.28 One or all queries from array provided should match array based.
- match
numberDefine how many queries provided need to match at minimum.
- array required
array
- query
query
Builds {"bool": {"should": [...], "minimum_should_match": N}} from the added_array pin: every array item that is not already a {"bool": ...} object is wrapped in its own bool.must clause. The number pin sets minimum_should_match (unwired or nil = 1), so at least N of the array entries must match; an unwired or empty array yields an empty should list.
A typical wiring for array should / or: with values feeds the added_array pin; the query out pin feeds cast to object.
Version history
Introduced in v10.4.28.
Back to
query Return to the main group to view all sub-groups Back to query Return to the group to view all blocks within this group 