Lines Matching refs:name
72 public function min(string $name): Min
74 return new Min($name);
82 public function max(string $name): Max
84 return new Max($name);
92 public function sum(string $name): Sum
94 return new Sum($name);
102 public function sum_bucket(string $name, ?string $bucketsPath = null): SumBucket
104 return new SumBucket($name, $bucketsPath);
112 public function avg(string $name): Avg
114 return new Avg($name);
122 public function avg_bucket(string $name, ?string $bucketsPath = null): AvgBucket
124 return new AvgBucket($name, $bucketsPath);
132 public function stats(string $name): Stats
134 return new Stats($name);
140 public function stats_bucket(string $name, ?string $bucketsPath = null): StatsBucket
142 return new StatsBucket($name, $bucketsPath);
150 public function extended_stats(string $name): ExtendedStats
152 return new ExtendedStats($name);
160 public function value_count(string $name, string $field): ValueCount
162 return new ValueCount($name, $field);
170 * @param string $name the name of this aggregation
173 public function percentiles(string $name, ?string $field = null): Percentiles
175 return new Percentiles($name, $field);
183 * @param string $name the name of this aggregation
186 public function percentiles_bucket(string $name, ?string $bucketsPath = null): PercentilesBucket
188 return new PercentilesBucket($name, $bucketsPath);
196 public function cardinality(string $name): Cardinality
198 return new Cardinality($name);
204 public function cumulative_sum(string $name, string $bucketsPath): CumulativeSum
206 return new CumulativeSum($name, $bucketsPath);
214 * @param string $name
216 public function geo_bounds($name): void
226 public function top_hits(string $name): TopHits
228 return new TopHits($name);
237 string $name,
243 return new ScriptedMetric($name, $initScript, $mapScript, $combineScript, $reduceScript);
251 public function global(string $name): GlobalAggregation
253 return new GlobalAggregation($name);
259 public function global_agg(string $name): GlobalAggregation
263 return $this->global($name);
271 public function filter(string $name, ?AbstractQuery $filter = null): Filter
273 return new Filter($name, $filter);
281 public function filters(string $name): Filters
283 return new Filters($name);
291 public function missing(string $name, string $field): Missing
293 return new Missing($name, $field);
303 public function nested(string $name, string $path): Nested
305 return new Nested($name, $path);
313 * @param string $name The name of this aggregation
316 public function reverse_nested(string $name, ?string $path = null): ReverseNested
318 return new ReverseNested($name, $path);
326 public function terms(string $name): Terms
328 return new Terms($name);
336 public function significant_terms(string $name): SignificantTerms
338 return new SignificantTerms($name);
346 public function range(string $name): Range
348 return new Range($name);
356 public function date_range(string $name): DateRange
358 return new DateRange($name);
366 public function ipv4_range(string $name, string $field): IpRange
368 return new IpRange($name, $field);
376 * @param string $name the name of this aggregation
377 * @param string $field the name of the field on which to perform the aggregation
380 public function histogram(string $name, string $field, $interval): Histogram
382 return new Histogram($name, $field, $interval);
390 * @param string $name the name of this aggregation
391 * @param string $field the name of the field on which to perform the aggregation
394 public function date_histogram(string $name, string $field, $interval): DateHistogram
396 return new DateHistogram($name, $field, $interval);
404 * @param string $name the name if this aggregation
408 public function geo_distance(string $name, string $field, $origin): GeoDistance
410 return new GeoDistance($name, $field, $origin);
418 * @param string $name the name of this aggregation
421 public function geohash_grid(string $name, string $field): GeohashGrid
423 return new GeohashGrid($name, $field);
431 * @param string $name the name of this aggregation
434 public function geotile_grid(string $name, string $field): GeotileGridAggregation
436 return new GeotileGridAggregation($name, $field);
444 public function bucket_script(string $name, ?array $bucketsPath = null, ?string $script = null): BucketScript
446 return new BucketScript($name, $bucketsPath, $script);
454 public function serial_diff(string $name, ?string $bucketsPath = null): SerialDiff
456 return new SerialDiff($name, $bucketsPath);
464 public function adjacency_matrix(string $name): AdjacencyMatrix
466 return new AdjacencyMatrix($name);
474 public function sampler(string $name): Sampler
476 return new Sampler($name);
482 public function derivative(string $name, ?string $bucketsPath = null): Derivative
484 return new Derivative($name, $bucketsPath);
492 public function diversified_sampler(string $name): DiversifiedSampler
494 return new DiversifiedSampler($name);
502 public function weighted_avg(string $name): WeightedAvg
504 return new WeightedAvg($name);
512 public function composite(string $name): Composite
514 return new Composite($name);
522 public function normalize(string $name, ?string $bucketsPath = null, ?string $method = null): NormalizeAggregation
524 return new NormalizeAggregation($name, $bucketsPath, $method);