class Elasticsearch::DSL::Search::Filters::Or
A compound filter which matches documents by a union of individual filters.
@note Since `or` is a keyword in Ruby, use the `_or` method in DSL
definitions
@example Pass the filters as a Hash
search do query do filtered do filter do _or filters: [ {term: { color: 'red' }}, {term: { size: 'xxl' }} ] end end end end
@example Define the filters with a block
search do query do filtered do filter do _or do term color: 'red' term size: 'xxl' end end end end end
@see www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-or-filter.html