diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go b/vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go index 5ae11fd6b..2ae7b63dc 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go +++ b/vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_geo_distance.go @@ -156,6 +156,8 @@ func (a *GeoDistanceAggregation) Source() (interface{}, error) { r["from"] = from case string: r["from"] = from + case *string: + r["from"] = from } } if ent.To != nil { @@ -166,6 +168,8 @@ func (a *GeoDistanceAggregation) Source() (interface{}, error) { r["to"] = to case string: r["to"] = to + case *string: + r["to"] = to } } ranges = append(ranges, r) |