clojurewerkz.elastisch.aggregation

Convenience functions that build various aggregation types.

All functions return maps and are completely optional (but recommended).

avg

(avg field)

cardinality

(cardinality field)(cardinality field opts)

date-histogram

(date-histogram field interval)(date-histogram field interval opts)

date-range

(date-range field format ranges)

extended-stats

(extended-stats field)

filter

(filter opts)

global

(global)

histogram

(histogram field interval)(histogram field interval opts)

ip-range

(ip-range field ranges)

max

(max field)

min

(min field)

missing

(missing field)

nested

(nested opts)

percentiles

(percentiles field)

range

(range field ranges)(range field ranges opts)

stats

(stats field)

sum

(sum field)

terms

(terms field)(terms field opts)

value-count

(value-count field)