@@ -290,7 +290,7 @@ public AggregationContainerDescriptor() : base()
290
290
{
291
291
}
292
292
293
- public AggregationContainerDescriptor < TDocument > AdjacencyMatrix ( string name , Action < AdjacencyMatrixAggregationDescriptor > configure )
293
+ public AggregationContainerDescriptor < TDocument > AdjacencyMatrix ( string name , Action < AdjacencyMatrixAggregationDescriptor < TDocument > > configure )
294
294
{
295
295
return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
296
296
}
@@ -315,12 +315,12 @@ public AggregationContainerDescriptor<TDocument> Cardinality(string name, Action
315
315
return SetContainer ( name , AggregationContainer . CreateWithAction ( "cardinality" , configure ) ) ;
316
316
}
317
317
318
- public AggregationContainerDescriptor < TDocument > Children ( string name , Action < ChildrenAggregationDescriptor > configure )
318
+ public AggregationContainerDescriptor < TDocument > Children ( string name , Action < ChildrenAggregationDescriptor < TDocument > > configure )
319
319
{
320
320
return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
321
321
}
322
322
323
- public AggregationContainerDescriptor < TDocument > Composite ( string name , Action < CompositeAggregationDescriptor > configure )
323
+ public AggregationContainerDescriptor < TDocument > Composite ( string name , Action < CompositeAggregationDescriptor < TDocument > > configure )
324
324
{
325
325
return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
326
326
}
@@ -355,12 +355,12 @@ public AggregationContainerDescriptor<TDocument> ExtendedStatsBucket(string name
355
355
return SetContainer ( name , AggregationContainer . CreateWithAction ( "extended_stats_bucket" , configure ) ) ;
356
356
}
357
357
358
- public AggregationContainerDescriptor < TDocument > Filters ( string name , Action < FiltersAggregationDescriptor > configure )
358
+ public AggregationContainerDescriptor < TDocument > Filters ( string name , Action < FiltersAggregationDescriptor < TDocument > > configure )
359
359
{
360
360
return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
361
361
}
362
362
363
- public AggregationContainerDescriptor < TDocument > Global ( string name , Action < GlobalAggregationDescriptor > configure )
363
+ public AggregationContainerDescriptor < TDocument > Global ( string name , Action < GlobalAggregationDescriptor < TDocument > > configure )
364
364
{
365
365
return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
366
366
}
@@ -415,7 +415,7 @@ public AggregationContainerDescriptor<TDocument> Nested(string name, Action<Nest
415
415
return SetContainer ( name , AggregationContainer . CreateWithAction ( "nested" , configure ) ) ;
416
416
}
417
417
418
- public AggregationContainerDescriptor < TDocument > Parent ( string name , Action < ParentAggregationDescriptor > configure )
418
+ public AggregationContainerDescriptor < TDocument > Parent ( string name , Action < ParentAggregationDescriptor < TDocument > > configure )
419
419
{
420
420
return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
421
421
}
@@ -440,7 +440,7 @@ public AggregationContainerDescriptor<TDocument> ReverseNested(string name, Acti
440
440
return SetContainer ( name , AggregationContainer . CreateWithAction ( "reverse_nested" , configure ) ) ;
441
441
}
442
442
443
- public AggregationContainerDescriptor < TDocument > Sampler ( string name , Action < SamplerAggregationDescriptor > configure )
443
+ public AggregationContainerDescriptor < TDocument > Sampler ( string name , Action < SamplerAggregationDescriptor < TDocument > > configure )
444
444
{
445
445
return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
446
446
}
@@ -518,6 +518,11 @@ public AggregationContainerDescriptor AdjacencyMatrix(string name, Action<Adjace
518
518
return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
519
519
}
520
520
521
+ public AggregationContainerDescriptor AdjacencyMatrix < TDocument > ( string name , Action < AdjacencyMatrixAggregationDescriptor < TDocument > > configure )
522
+ {
523
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "adjacency_matrix" , configure ) ) ;
524
+ }
525
+
521
526
public AggregationContainerDescriptor AutoDateHistogram ( string name , Action < AutoDateHistogramAggregationDescriptor > configure )
522
527
{
523
528
return SetContainer ( name , AggregationContainer . CreateWithAction ( "auto_date_histogram" , configure ) ) ;
@@ -563,11 +568,21 @@ public AggregationContainerDescriptor Children(string name, Action<ChildrenAggre
563
568
return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
564
569
}
565
570
571
+ public AggregationContainerDescriptor Children < TDocument > ( string name , Action < ChildrenAggregationDescriptor < TDocument > > configure )
572
+ {
573
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "children" , configure ) ) ;
574
+ }
575
+
566
576
public AggregationContainerDescriptor Composite ( string name , Action < CompositeAggregationDescriptor > configure )
567
577
{
568
578
return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
569
579
}
570
580
581
+ public AggregationContainerDescriptor Composite < TDocument > ( string name , Action < CompositeAggregationDescriptor < TDocument > > configure )
582
+ {
583
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "composite" , configure ) ) ;
584
+ }
585
+
571
586
public AggregationContainerDescriptor CumulativeCardinality ( string name , Action < CumulativeCardinalityAggregationDescriptor > configure )
572
587
{
573
588
return SetContainer ( name , AggregationContainer . CreateWithAction ( "cumulative_cardinality" , configure ) ) ;
@@ -618,11 +633,21 @@ public AggregationContainerDescriptor Filters(string name, Action<FiltersAggrega
618
633
return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
619
634
}
620
635
636
+ public AggregationContainerDescriptor Filters < TDocument > ( string name , Action < FiltersAggregationDescriptor < TDocument > > configure )
637
+ {
638
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "filters" , configure ) ) ;
639
+ }
640
+
621
641
public AggregationContainerDescriptor Global ( string name , Action < GlobalAggregationDescriptor > configure )
622
642
{
623
643
return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
624
644
}
625
645
646
+ public AggregationContainerDescriptor Global < TDocument > ( string name , Action < GlobalAggregationDescriptor < TDocument > > configure )
647
+ {
648
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "global" , configure ) ) ;
649
+ }
650
+
626
651
public AggregationContainerDescriptor Histogram ( string name , Action < HistogramAggregationDescriptor > configure )
627
652
{
628
653
return SetContainer ( name , AggregationContainer . CreateWithAction ( "histogram" , configure ) ) ;
@@ -728,6 +753,11 @@ public AggregationContainerDescriptor Parent(string name, Action<ParentAggregati
728
753
return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
729
754
}
730
755
756
+ public AggregationContainerDescriptor Parent < TDocument > ( string name , Action < ParentAggregationDescriptor < TDocument > > configure )
757
+ {
758
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "parent" , configure ) ) ;
759
+ }
760
+
731
761
public AggregationContainerDescriptor PercentilesBucket ( string name , Action < PercentilesBucketAggregationDescriptor > configure )
732
762
{
733
763
return SetContainer ( name , AggregationContainer . CreateWithAction ( "percentiles_bucket" , configure ) ) ;
@@ -768,6 +798,11 @@ public AggregationContainerDescriptor Sampler(string name, Action<SamplerAggrega
768
798
return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
769
799
}
770
800
801
+ public AggregationContainerDescriptor Sampler < TDocument > ( string name , Action < SamplerAggregationDescriptor < TDocument > > configure )
802
+ {
803
+ return SetContainer ( name , AggregationContainer . CreateWithAction ( "sampler" , configure ) ) ;
804
+ }
805
+
771
806
public AggregationContainerDescriptor ScriptedMetric ( string name , Action < ScriptedMetricAggregationDescriptor > configure )
772
807
{
773
808
return SetContainer ( name , AggregationContainer . CreateWithAction ( "scripted_metric" , configure ) ) ;
0 commit comments