@@ -290,7 +290,7 @@ public AggregationContainerDescriptor() : base()
290290 {
291291 }
292292
293- public AggregationContainerDescriptor < TDocument > AdjacencyMatrix ( string name , Action < AdjacencyMatrixAggregationDescriptor > configure )
293+ public AggregationContainerDescriptor < TDocument > AdjacencyMatrix ( string name , Action < AdjacencyMatrixAggregationDescriptor < TDocument > > configure )
294294 {
295295 return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
296296 }
@@ -315,12 +315,12 @@ public AggregationContainerDescriptor<TDocument> Cardinality(string name, Action
315315 return SetContainer ( name , AggregationContainer . CreateWithAction ( "cardinality" , configure ) ) ;
316316 }
317317
318- public AggregationContainerDescriptor < TDocument > Children ( string name , Action < ChildrenAggregationDescriptor > configure )
318+ public AggregationContainerDescriptor < TDocument > Children ( string name , Action < ChildrenAggregationDescriptor < TDocument > > configure )
319319 {
320320 return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
321321 }
322322
323- public AggregationContainerDescriptor < TDocument > Composite ( string name , Action < CompositeAggregationDescriptor > configure )
323+ public AggregationContainerDescriptor < TDocument > Composite ( string name , Action < CompositeAggregationDescriptor < TDocument > > configure )
324324 {
325325 return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
326326 }
@@ -355,12 +355,12 @@ public AggregationContainerDescriptor<TDocument> ExtendedStatsBucket(string name
355355 return SetContainer ( name , AggregationContainer . CreateWithAction ( "extended_stats_bucket" , configure ) ) ;
356356 }
357357
358- public AggregationContainerDescriptor < TDocument > Filters ( string name , Action < FiltersAggregationDescriptor > configure )
358+ public AggregationContainerDescriptor < TDocument > Filters ( string name , Action < FiltersAggregationDescriptor < TDocument > > configure )
359359 {
360360 return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
361361 }
362362
363- public AggregationContainerDescriptor < TDocument > Global ( string name , Action < GlobalAggregationDescriptor > configure )
363+ public AggregationContainerDescriptor < TDocument > Global ( string name , Action < GlobalAggregationDescriptor < TDocument > > configure )
364364 {
365365 return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
366366 }
@@ -415,7 +415,7 @@ public AggregationContainerDescriptor<TDocument> Nested(string name, Action<Nest
415415 return SetContainer ( name , AggregationContainer . CreateWithAction ( "nested" , configure ) ) ;
416416 }
417417
418- public AggregationContainerDescriptor < TDocument > Parent ( string name , Action < ParentAggregationDescriptor > configure )
418+ public AggregationContainerDescriptor < TDocument > Parent ( string name , Action < ParentAggregationDescriptor < TDocument > > configure )
419419 {
420420 return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
421421 }
@@ -440,7 +440,7 @@ public AggregationContainerDescriptor<TDocument> ReverseNested(string name, Acti
440440 return SetContainer ( name , AggregationContainer . CreateWithAction ( "reverse_nested" , configure ) ) ;
441441 }
442442
443- public AggregationContainerDescriptor < TDocument > Sampler ( string name , Action < SamplerAggregationDescriptor > configure )
443+ public AggregationContainerDescriptor < TDocument > Sampler ( string name , Action < SamplerAggregationDescriptor < TDocument > > configure )
444444 {
445445 return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
446446 }
@@ -518,6 +518,11 @@ public AggregationContainerDescriptor AdjacencyMatrix(string name, Action<Adjace
518518 return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
519519 }
520520
521+ public AggregationContainerDescriptor AdjacencyMatrix < TDocument > ( string name , Action < AdjacencyMatrixAggregationDescriptor < TDocument > > configure )
522+ {
523+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
524+ }
525+
521526 public AggregationContainerDescriptor AutoDateHistogram ( string name , Action < AutoDateHistogramAggregationDescriptor > configure )
522527 {
523528 return SetContainer ( name , AggregationContainer . CreateWithAction ( "auto_date_histogram" , configure ) ) ;
@@ -563,11 +568,21 @@ public AggregationContainerDescriptor Children(string name, Action<ChildrenAggre
563568 return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
564569 }
565570
571+ public AggregationContainerDescriptor Children < TDocument > ( string name , Action < ChildrenAggregationDescriptor < TDocument > > configure )
572+ {
573+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
574+ }
575+
566576 public AggregationContainerDescriptor Composite ( string name , Action < CompositeAggregationDescriptor > configure )
567577 {
568578 return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
569579 }
570580
581+ public AggregationContainerDescriptor Composite < TDocument > ( string name , Action < CompositeAggregationDescriptor < TDocument > > configure )
582+ {
583+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
584+ }
585+
571586 public AggregationContainerDescriptor CumulativeCardinality ( string name , Action < CumulativeCardinalityAggregationDescriptor > configure )
572587 {
573588 return SetContainer ( name , AggregationContainer . CreateWithAction ( "cumulative_cardinality" , configure ) ) ;
@@ -618,11 +633,21 @@ public AggregationContainerDescriptor Filters(string name, Action<FiltersAggrega
618633 return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
619634 }
620635
636+ public AggregationContainerDescriptor Filters < TDocument > ( string name , Action < FiltersAggregationDescriptor < TDocument > > configure )
637+ {
638+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
639+ }
640+
621641 public AggregationContainerDescriptor Global ( string name , Action < GlobalAggregationDescriptor > configure )
622642 {
623643 return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
624644 }
625645
646+ public AggregationContainerDescriptor Global < TDocument > ( string name , Action < GlobalAggregationDescriptor < TDocument > > configure )
647+ {
648+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
649+ }
650+
626651 public AggregationContainerDescriptor Histogram ( string name , Action < HistogramAggregationDescriptor > configure )
627652 {
628653 return SetContainer ( name , AggregationContainer . CreateWithAction ( "histogram" , configure ) ) ;
@@ -728,6 +753,11 @@ public AggregationContainerDescriptor Parent(string name, Action<ParentAggregati
728753 return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
729754 }
730755
756+ public AggregationContainerDescriptor Parent < TDocument > ( string name , Action < ParentAggregationDescriptor < TDocument > > configure )
757+ {
758+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
759+ }
760+
731761 public AggregationContainerDescriptor PercentilesBucket ( string name , Action < PercentilesBucketAggregationDescriptor > configure )
732762 {
733763 return SetContainer ( name , AggregationContainer . CreateWithAction ( "percentiles_bucket" , configure ) ) ;
@@ -768,6 +798,11 @@ public AggregationContainerDescriptor Sampler(string name, Action<SamplerAggrega
768798 return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
769799 }
770800
801+ public AggregationContainerDescriptor Sampler < TDocument > ( string name , Action < SamplerAggregationDescriptor < TDocument > > configure )
802+ {
803+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
804+ }
805+
771806 public AggregationContainerDescriptor ScriptedMetric ( string name , Action < ScriptedMetricAggregationDescriptor > configure )
772807 {
773808 return SetContainer ( name , AggregationContainer . CreateWithAction ( "scripted_metric" , configure ) ) ;
0 commit comments