Class: OpenSearch::DSL::Search::Queries::SpanOr

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/dsl/search/queries/span_or.rb

Overview

A query which returns documents matching the union of provided queries

Examples:


search do
  query do
    span_or clauses: [ { span_term: { title: 'disaster' } }, { span_term: { title: 'health' } } ]
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize