elasticsearch: pipeline aggregation fix for json encoding

This commit is contained in:
Marcus Efraimsson
2018-05-23 16:46:26 +02:00
parent dce59ccff2
commit 242689abe2
+1 -1
View File
@@ -293,7 +293,7 @@ type PipelineAggregation struct {
// MarshalJSON returns the JSON encoding of the pipeline aggregation
func (a *PipelineAggregation) MarshalJSON() ([]byte, error) {
root := map[string]interface{}{
"bucket_path": a.BucketPath,
"buckets_path": a.BucketPath,
}
for k, v := range a.Settings {