bug fix
This commit is contained in:
Yuan Liu
2018-10-11 11:36:40 +08:00
committed by GitHub
parent 3b9ab6e204
commit 567db87c3a

View File

@ -172,7 +172,7 @@ func addTermsAgg(aggBuilder es.AggBuilder, bucketAgg *BucketAgg, metrics []*Metr
a.Size = 500 a.Size = 500
} }
if a.Size == 0 { if a.Size == 0 {
a.Size = 500 a.Size = 500
} }
if minDocCount, err := bucketAgg.Settings.Get("min_doc_count").Int(); err == nil { if minDocCount, err := bucketAgg.Settings.Get("min_doc_count").Int(); err == nil {