diff options
Diffstat (limited to 'vendor/github.com/olivere/elastic/v7/inner_hit.go')
-rw-r--r-- | vendor/github.com/olivere/elastic/v7/inner_hit.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/olivere/elastic/v7/inner_hit.go b/vendor/github.com/olivere/elastic/v7/inner_hit.go index 803662646c..2dbcbad1aa 100644 --- a/vendor/github.com/olivere/elastic/v7/inner_hit.go +++ b/vendor/github.com/olivere/elastic/v7/inner_hit.go @@ -41,6 +41,11 @@ func (hit *InnerHit) Query(query Query) *InnerHit { return hit } +func (hit *InnerHit) Collapse(collapse *CollapseBuilder) *InnerHit { + hit.source.Collapse(collapse) + return hit +} + func (hit *InnerHit) From(from int) *InnerHit { hit.source.From(from) return hit |