Initialize an aggregation query

query_agg(con, index = NULL, size = 1000, check_fields = TRUE)

Arguments

con

an es_connect() object

index

the name of the index to query (if not specified, will fall back on 'primary_index' provided to es_connect())

size

(TODO)

check_fields

should field names be checked when the query is augmented?