Class: Elasticsearch::DSL::Search::Aggregations::IpRange

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

Overview

A multi-bucket aggregation which returns document counts for defined IP ranges

Examples:


search do
  aggregation :ips do
    ip_range do
      field 'ip'
      ranges [ { mask: '10.0.0.0/25' }, { mask: '10.0.0.127/25' } ]
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included