1 | <?php |
||
50 | class Aggregation implements DSL |
||
51 | { |
||
52 | /** |
||
53 | * must return type for QueryBuilder usage. |
||
54 | */ |
||
55 | public function getType(): string |
||
59 | |||
60 | /** |
||
61 | * min aggregation. |
||
62 | * |
||
63 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-min-aggregation.html |
||
64 | */ |
||
65 | public function min(string $name): Min |
||
69 | |||
70 | /** |
||
71 | * max aggregation. |
||
72 | * |
||
73 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-max-aggregation.html |
||
74 | */ |
||
75 | public function max(string $name): Max |
||
79 | |||
80 | /** |
||
81 | * sum aggregation. |
||
82 | * |
||
83 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-sum-aggregation.html |
||
84 | */ |
||
85 | public function sum(string $name): Sum |
||
89 | |||
90 | /** |
||
91 | * sum bucket aggregation. |
||
92 | * |
||
93 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html |
||
94 | */ |
||
95 | public function sum_bucket(string $name, ?string $bucketsPath = null): SumBucket |
||
99 | |||
100 | /** |
||
101 | * avg aggregation. |
||
102 | * |
||
103 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-avg-aggregation.html |
||
104 | */ |
||
105 | public function avg(string $name): Avg |
||
109 | |||
110 | /** |
||
111 | * avg bucket aggregation. |
||
112 | * |
||
113 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html |
||
114 | */ |
||
115 | public function avg_bucket(string $name, ?string $bucketsPath = null): AvgBucket |
||
119 | |||
120 | /** |
||
121 | * stats aggregation. |
||
122 | * |
||
123 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-stats-aggregation.html |
||
124 | */ |
||
125 | public function stats(string $name): Stats |
||
129 | |||
130 | /** |
||
131 | * extended stats aggregation. |
||
132 | * |
||
133 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-extendedstats-aggregation.html |
||
134 | */ |
||
135 | public function extended_stats(string $name): ExtendedStats |
||
139 | |||
140 | /** |
||
141 | * value count aggregation. |
||
142 | * |
||
143 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html |
||
144 | */ |
||
145 | public function value_count(string $name, string $field): ValueCount |
||
149 | |||
150 | /** |
||
151 | * percentiles aggregation. |
||
152 | * |
||
153 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-aggregation.html |
||
154 | * |
||
155 | * @param string $name the name of this aggregation |
||
156 | * @param string $field the field on which to perform this aggregation |
||
157 | */ |
||
158 | public function percentiles(string $name, ?string $field = null): Percentiles |
||
162 | |||
163 | /** |
||
164 | * cardinality aggregation. |
||
165 | * |
||
166 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html |
||
167 | */ |
||
168 | public function cardinality(string $name): Cardinality |
||
172 | |||
173 | /** |
||
174 | * geo bounds aggregation. |
||
175 | * |
||
176 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html |
||
177 | * |
||
178 | * @param string $name |
||
179 | */ |
||
180 | public function geo_bounds($name): void |
||
184 | |||
185 | /** |
||
186 | * top hits aggregation. |
||
187 | * |
||
188 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html |
||
189 | */ |
||
190 | public function top_hits(string $name): TopHits |
||
194 | |||
195 | /** |
||
196 | * scripted metric aggregation. |
||
197 | * |
||
198 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html |
||
199 | */ |
||
200 | public function scripted_metric( |
||
209 | |||
210 | /** |
||
211 | * global aggregation. |
||
212 | * |
||
213 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html |
||
214 | */ |
||
215 | public function global_agg(string $name): GlobalAggregation |
||
219 | |||
220 | /** |
||
221 | * filter aggregation. |
||
222 | * |
||
223 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html |
||
224 | * |
||
225 | * @param AbstractQuery $filter |
||
226 | */ |
||
227 | public function filter(string $name, ?AbstractQuery $filter = null): Filter |
||
231 | |||
232 | /** |
||
233 | * filters aggregation. |
||
234 | * |
||
235 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html |
||
236 | */ |
||
237 | public function filters(string $name): Filters |
||
241 | |||
242 | /** |
||
243 | * missing aggregation. |
||
244 | * |
||
245 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html |
||
246 | */ |
||
247 | public function missing(string $name, string $field): Missing |
||
251 | |||
252 | /** |
||
253 | * nested aggregation. |
||
254 | * |
||
255 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html |
||
256 | * |
||
257 | * @param string $path the nested path for this aggregation |
||
258 | */ |
||
259 | public function nested(string $name, string $path): Nested |
||
263 | |||
264 | /** |
||
265 | * reverse nested aggregation. |
||
266 | * |
||
267 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html |
||
268 | * |
||
269 | * @param string $name The name of this aggregation |
||
270 | * @param string $path Optional path to the nested object for this aggregation. Defaults to the root of the main document. |
||
271 | */ |
||
272 | public function reverse_nested(string $name, ?string $path = null): ReverseNested |
||
276 | |||
277 | /** |
||
278 | * terms aggregation. |
||
279 | * |
||
280 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html |
||
281 | */ |
||
282 | public function terms(string $name): Terms |
||
286 | |||
287 | /** |
||
288 | * significant terms aggregation. |
||
289 | * |
||
290 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html |
||
291 | */ |
||
292 | public function significant_terms(string $name): SignificantTerms |
||
296 | |||
297 | /** |
||
298 | * range aggregation. |
||
299 | * |
||
300 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-range-aggregation.html |
||
301 | */ |
||
302 | public function range(string $name): Range |
||
306 | |||
307 | /** |
||
308 | * date range aggregation. |
||
309 | * |
||
310 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-daterange-aggregation.html |
||
311 | */ |
||
312 | public function date_range(string $name): DateRange |
||
316 | |||
317 | /** |
||
318 | * ipv4 range aggregation. |
||
319 | * |
||
320 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html |
||
321 | */ |
||
322 | public function ipv4_range(string $name, string $field): IpRange |
||
326 | |||
327 | /** |
||
328 | * histogram aggregation. |
||
329 | * |
||
330 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html |
||
331 | * |
||
332 | * @param string $name the name of this aggregation |
||
333 | * @param string $field the name of the field on which to perform the aggregation |
||
334 | * @param int $interval the interval by which documents will be bucketed |
||
335 | */ |
||
336 | public function histogram(string $name, string $field, $interval): Histogram |
||
340 | |||
341 | /** |
||
342 | * date histogram aggregation. |
||
343 | * |
||
344 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html |
||
345 | * |
||
346 | * @param string $name the name of this aggregation |
||
347 | * @param string $field the name of the field on which to perform the aggregation |
||
348 | * @param int|string $interval the interval by which documents will be bucketed |
||
349 | */ |
||
350 | public function date_histogram(string $name, string $field, $interval): DateHistogram |
||
354 | |||
355 | /** |
||
356 | * geo distance aggregation. |
||
357 | * |
||
358 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html |
||
359 | * |
||
360 | * @param string $name the name if this aggregation |
||
361 | * @param string $field the field on which to perform this aggregation |
||
362 | * @param array|string $origin the point from which distances will be calculated |
||
363 | */ |
||
364 | public function geo_distance(string $name, string $field, $origin): GeoDistance |
||
368 | |||
369 | /** |
||
370 | * geohash grid aggregation. |
||
371 | * |
||
372 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html |
||
373 | * |
||
374 | * @param string $name the name of this aggregation |
||
375 | * @param string $field the field on which to perform this aggregation |
||
376 | */ |
||
377 | public function geohash_grid(string $name, string $field): GeohashGrid |
||
381 | |||
382 | /** |
||
383 | * bucket script aggregation. |
||
384 | * |
||
385 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html |
||
386 | */ |
||
387 | public function bucket_script(string $name, ?array $bucketsPath = null, ?string $script = null): BucketScript |
||
391 | |||
392 | /** |
||
393 | * serial diff aggregation. |
||
394 | * |
||
395 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html |
||
396 | */ |
||
397 | public function serial_diff(string $name, ?string $bucketsPath = null): SerialDiff |
||
401 | |||
402 | /** |
||
403 | * adjacency matrix aggregation. |
||
404 | * |
||
405 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html |
||
406 | */ |
||
407 | public function adjacency_matrix(string $name): AdjacencyMatrix |
||
411 | |||
412 | /** sampler aggregation. |
||
413 | * |
||
414 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html |
||
415 | * |
||
416 | * @param string $name |
||
417 | */ |
||
418 | public function sampler($name): Sampler |
||
422 | |||
423 | /** |
||
424 | * diversified sampler aggregation. |
||
425 | * |
||
426 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html |
||
427 | */ |
||
428 | public function diversified_sampler(string $name): DiversifiedSampler |
||
432 | |||
433 | /** |
||
434 | * composite aggregation |
||
435 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html |
||
436 | */ |
||
437 | public function composite(string $name): Composite |
||
441 | } |
||
442 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.