Only Include results that match on this list of filters.
"match" property of filters requires "field" to control which field to match on, and an array of items in "value" to dictate exact match values.
"range" property of filters requires "field" to control which field to match on, and "greaterThan" and/or "lessThan", which must be a number or a date string.
"wildcard" property of filters requires "field" to control which field to match on, and an array of items in "value" to control wildcard match pattern. It may include * to match any string of characters, and ? To match one character.
"or" property of filters requires either: a list of ( subfilters / list of subfilters) etc. [{"match":...},[{"match":...},{"range":...}]].At least one of the subfilters must evaluate to true. If a subfilter is an array, it performs an AND over the sub-sub-filters. For example, [filter1,[filter2,filter3]] is equivalent to filter1 OR (filter2 AND filter3).
Example:
[
{
"match":{
"field":"name",
"value":["television"]
}
},
{
"wildcard":{
"field":"name",
"value":["television*"]
}
},
{
"range":{
"field":"price",
"greaterThan":5.5,
"lessThan":20
}
},
{
"range":{
"field":"postcode",
"greaterThan":2000
}
},
{
"match":{
"field":"likes_dogs",
"value":[true]
}
},
{
"or": [ {"match":{"field":"name","value":["dog"]}},[{"match":{"field":"name","value":["cat"]}},{"wildcard":{"field":"color","value"["orange"]}] ]
},
]