Class: AggregationBuilders
- Inherits:
-
Object
- Object
- AggregationBuilders
- Defined in:
- lib/aggregation_builders.rb
Class Method Summary collapse
- .avg(*args) ⇒ Object
- .date_histogram(*args) ⇒ Object
- .date_range(*args) ⇒ Object
- .filter(*args) ⇒ Object
- .filters(*args) ⇒ Object
- .geohash_grid(*args) ⇒ Object
- .histogram(*args) ⇒ Object
- .max(*args) ⇒ Object
- .min(*args) ⇒ Object
- .nested(*args) ⇒ Object
- .range(*args) ⇒ Object
- .reverse_nested(*args) ⇒ Object
- .terms(*args) ⇒ Object
- .top_hits(*args) ⇒ Object
Class Method Details
.avg(*args) ⇒ Object
55 56 57 |
# File 'lib/aggregation_builders.rb', line 55 def self.avg(*args) return ::Aggregations::Metrics::AvgAggregationBuilder.new(*args) end |
.date_histogram(*args) ⇒ Object
31 32 33 |
# File 'lib/aggregation_builders.rb', line 31 def self.date_histogram(*args) return ::Aggregations::Buckets::DateHistogramAggregationBuilder.new(*args) end |
.date_range(*args) ⇒ Object
39 40 41 |
# File 'lib/aggregation_builders.rb', line 39 def self.date_range(*args) return ::Aggregations::Buckets::DateRangeAggregationBuilder.new(*args) end |
.filter(*args) ⇒ Object
7 8 9 |
# File 'lib/aggregation_builders.rb', line 7 def self.filter(*args) return ::Aggregations::Buckets::FilterAggregationBuilder.new(*args) end |
.filters(*args) ⇒ Object
11 12 13 |
# File 'lib/aggregation_builders.rb', line 11 def self.filters(*args) return ::Aggregations::Buckets::FiltersAggregationBuilder.new(*args) end |
.geohash_grid(*args) ⇒ Object
15 16 17 |
# File 'lib/aggregation_builders.rb', line 15 def self.geohash_grid(*args) return ::Aggregations::Buckets::GeoGridAggregationBuilder.new(*args) end |
.histogram(*args) ⇒ Object
35 36 37 |
# File 'lib/aggregation_builders.rb', line 35 def self.histogram(*args) return ::Aggregations::Buckets::HistogramAggregationBuilder.new(*args) end |
.max(*args) ⇒ Object
47 48 49 |
# File 'lib/aggregation_builders.rb', line 47 def self.max(*args) return ::Aggregations::Metrics::MaxAggregationBuilder.new(*args) end |
.min(*args) ⇒ Object
51 52 53 |
# File 'lib/aggregation_builders.rb', line 51 def self.min(*args) return ::Aggregations::Metrics::MinAggregationBuilder.new(*args) end |
.nested(*args) ⇒ Object
23 24 25 |
# File 'lib/aggregation_builders.rb', line 23 def self.nested(*args) return ::Aggregations::Buckets::NestedAggregationBuilder.new(*args) end |
.range(*args) ⇒ Object
43 44 45 |
# File 'lib/aggregation_builders.rb', line 43 def self.range(*args) return ::Aggregations::Buckets::RangeAggregationBuilder.new(*args) end |
.reverse_nested(*args) ⇒ Object
27 28 29 |
# File 'lib/aggregation_builders.rb', line 27 def self.reverse_nested(*args) return ::Aggregations::Buckets::ReverseNestedAggregationBuilder.new(*args) end |
.terms(*args) ⇒ Object
3 4 5 |
# File 'lib/aggregation_builders.rb', line 3 def self.terms(*args) return ::Aggregations::Buckets::TermsAggregationBuilder.new(*args) end |
.top_hits(*args) ⇒ Object
19 20 21 |
# File 'lib/aggregation_builders.rb', line 19 def self.top_hits(*args) return ::Aggregations::Buckets::TopHitsAggregationBuilder.new(*args) end |