exlasticsearch v1.8.0 ExlasticSearch.Aggregation View Source

Elasticsearch aggregation building functions

Link to this section Summary

Functions

The source for a composite aggregation, eg composite_source(:age, :terms, field: :age)

Includes a given aggregation within the aggregation with name name

create a new aggregation specification

Convert to the es representation of the aggregation

Bucket a query by a given term

Return the top results for a query or aggregation scope

Link to this section Types

Link to this type t() View Source
t() :: %ExlasticSearch.Aggregation{
  aggregations: term(),
  nested: term(),
  options: term()
}

Link to this section Functions

Link to this function composite(agg, name, sources, opts \\ []) View Source

A composite aggregation

Link to this function composite_source(name, type, opts) View Source

The source for a composite aggregation, eg composite_source(:age, :terms, field: :age)

Includes a given aggregation within the aggregation with name name

create a new aggregation specification

Convert to the es representation of the aggregation

Link to this function terms(agg, name, options) View Source

Bucket a query by a given term

Link to this function top_hits(agg, name, options) View Source

Return the top results for a query or aggregation scope

Link to this function with_nested(aggregation, nested, key) View Source