Class: Elasticsearch::DSL::Search::Aggregations::Missing

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/missing.rb

Overview

A single bucket aggregation that creates a bucket of all documents which are missing a value for the field

Examples:

Passing the options as a Hash


aggregation :articles_without_tags do
  missing field: 'tags'
end

Passing the options as a block


search do
  aggregation :articles_without_tags do
    missing do
      field 'tags'
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included