Class: OpenSearch::DSL::Search::Queries::SpanNot

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

Overview

A query which discards matching documents which overlap with another query

Examples:


search do
  query do
    span_not include: { span_term: { title: 'disaster' } },
             exclude: { span_term: { title: 'health' } }
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize