diff --git a/search_aggs_bucket_sampler.go b/search_aggs_bucket_sampler.go index d64e6b3d..943c70dd 100644 --- a/search_aggs_bucket_sampler.go +++ b/search_aggs_bucket_sampler.go @@ -14,15 +14,12 @@ type SamplerAggregation struct { subAggregations map[string]Aggregation meta map[string]interface{} - shardSize int - maxDocsPerValue int - executionHint string + shardSize int } func NewSamplerAggregation() *SamplerAggregation { return &SamplerAggregation{ shardSize: -1, - maxDocsPerValue: -1, subAggregations: make(map[string]Aggregation), } } @@ -44,16 +41,6 @@ func (a *SamplerAggregation) ShardSize(shardSize int) *SamplerAggregation { return a } -func (a *SamplerAggregation) MaxDocsPerValue(maxDocsPerValue int) *SamplerAggregation { - a.maxDocsPerValue = maxDocsPerValue - return a -} - -func (a *SamplerAggregation) ExecutionHint(hint string) *SamplerAggregation { - a.executionHint = hint - return a -} - func (a *SamplerAggregation) Source() (interface{}, error) { // Example: // { @@ -82,12 +69,6 @@ func (a *SamplerAggregation) Source() (interface{}, error) { if a.shardSize >= 0 { opts["shard_size"] = a.shardSize } - if a.maxDocsPerValue >= 0 { - opts["max_docs_per_value"] = a.maxDocsPerValue - } - if a.executionHint != "" { - opts["execution_hint"] = a.executionHint - } // AggregationBuilder (SubAggregations) if len(a.subAggregations) > 0 {