added description for aggregation and bucket types

This commit is contained in:
Ian Babrou 2014-03-15 22:04:10 +04:00
parent bee90498ec
commit d384dd00bd

View File

@ -84,8 +84,10 @@ type Response struct {
Aggregations map[string]Aggregation `json:"aggregations,omitempty"`
}
// Represents an aggregation from response
type Aggregation map[string]interface{}
// Represents a bucket for aggregation
type Bucket map[string]interface{}
// Represents a document to send to elasticsearch