Class: OpenSearch::DSL::Search::Filters::Missing

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

Overview

A filter which returns documents which have a ‘null` value in the specified field (ie. the reverse of the `exists` filter)

Examples:


search do
  query do
    filtered do
      filter do
        missing field: 'occupation'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize