Method | Description | |
---|---|---|
avg ( string $name ) : Elastica\Aggregation\Avg | avg aggregation. | |
bucket_script ( string $name, array | null $bucketsPath = null, string | null $script = null ) : |
bucket script aggregation. | |
cardinality ( string $name ) : Elastica\Aggregation\Cardinality | cardinality aggregation. | |
children ( string $name ) | children aggregation. | |
date_histogram ( string $name, string $field, integer $interval ) : |
date histogram aggregation. | |
date_range ( string $name ) : Elastica\Aggregation\DateRange | date range aggregation. | |
extended_stats ( string $name ) : Elastica\Aggregation\ExtendedStats | extended stats aggregation. | |
filter ( string $name, Elastica\Query\AbstractQuery $filter = null ) : |
filter aggregation. | |
filters ( string $name ) : |
filters aggregation. | |
geo_bounds ( string $name ) | geo bounds aggregation. | |
geo_distance ( string $name, string $field, string | array $origin ) : Elastica\Aggregation\GeoDistance | geo distance aggregation. | |
geohash_grid ( string $name, string $field ) : Elastica\Aggregation\GeohashGrid | geohash grid aggregation. | |
getType ( ) : string | must return type for QueryBuilder usage. | |
global_agg ( string $name ) : Elastica\Aggregation\GlobalAggregation | global aggregation. | |
histogram ( string $name, string $field, integer $interval ) : |
histogram aggregation. | |
ipv4_range ( string $name, string $field ) : |
ipv4 range aggregation. | |
max ( string $name ) : Elastica\Aggregation\Max | max aggregation. | |
min ( string $name ) : Elastica\Aggregation\Min | min aggregation. | |
missing ( string $name, string $field ) : Elastica\Aggregation\Missing | missing aggregation. | |
nested ( string $name, string $path ) : Elastica\Aggregation\Nested | nested aggregation. | |
percentile_ranks ( string $name ) | percentile ranks aggregation. | |
percentiles ( string $name, string $field = null ) : Elastica\Aggregation\Percentiles | percentiles aggregation. | |
range ( string $name ) : |
range aggregation. | |
reverse_nested ( string $name, string $path = null ) : Elastica\Aggregation\ReverseNested | reverse nested aggregation. | |
scripted_metric ( string $name, string | null $initScript = null, string | null $mapScript = null, string | null $combineScript = null, string | null $reduceScript = null ) : Elastica\Aggregation\ScriptedMetric | scripted metric aggregation. | |
serial_diff ( string $name, string | null $bucketsPath = null ) : |
serial diff aggregation. | |
significant_terms ( string $name ) : |
significant terms aggregation. | |
stats ( string $name ) : Elastica\Aggregation\Stats | stats aggregation. | |
sum ( string $name ) : Elastica\Aggregation\Sum | sum aggregation. | |
terms ( string $name ) : |
terms aggregation. | |
top_hits ( string $name ) : |
top hits aggregation. | |
value_count ( string $name, string $field ) : Elastica\Aggregation\ValueCount | value count aggregation. |
public cardinality ( string $name ) : Elastica\Aggregation\Cardinality | ||
$name | string | |
return | Elastica\Aggregation\Cardinality |
public date_histogram ( string $name, string $field, integer $interval ) : |
||
$name | string | the name of this aggregation |
$field | string | the name of the field on which to perform the aggregation |
$interval | integer | the interval by which documents will be bucketed |
return |
public date_range ( string $name ) : Elastica\Aggregation\DateRange | ||
$name | string | |
return | Elastica\Aggregation\DateRange |
public extended_stats ( string $name ) : Elastica\Aggregation\ExtendedStats | ||
$name | string | |
return | Elastica\Aggregation\ExtendedStats |
public geo_distance ( string $name, string $field, string | array $origin ) : Elastica\Aggregation\GeoDistance | ||
$name | string | the name if this aggregation |
$field | string | the field on which to perform this aggregation |
$origin | string | array | the point from which distances will be calculated |
return | Elastica\Aggregation\GeoDistance |
public geohash_grid ( string $name, string $field ) : Elastica\Aggregation\GeohashGrid | ||
$name | string | the name of this aggregation |
$field | string | the field on which to perform this aggregation |
return | Elastica\Aggregation\GeohashGrid |
public global_agg ( string $name ) : Elastica\Aggregation\GlobalAggregation | ||
$name | string | |
return | Elastica\Aggregation\GlobalAggregation |
public ipv4_range ( string $name, string $field ) : |
||
$name | string | |
$field | string | |
return |
public percentile_ranks ( string $name ) | ||
$name | string |
public percentiles ( string $name, string $field = null ) : Elastica\Aggregation\Percentiles | ||
$name | string | the name of this aggregation |
$field | string | the field on which to perform this aggregation |
return | Elastica\Aggregation\Percentiles |
public reverse_nested ( string $name, string $path = null ) : Elastica\Aggregation\ReverseNested | ||
$name | string | The name of this aggregation |
$path | string | Optional path to the nested object for this aggregation. Defaults to the root of the main document. |
return | Elastica\Aggregation\ReverseNested |
public scripted_metric ( string $name, string | null $initScript = null, string | null $mapScript = null, string | null $combineScript = null, string | null $reduceScript = null ) : Elastica\Aggregation\ScriptedMetric | ||
$name | string | |
$initScript | string | null | |
$mapScript | string | null | |
$combineScript | string | null | |
$reduceScript | string | null | |
return | Elastica\Aggregation\ScriptedMetric |
public significant_terms ( string $name ) : |
||
$name | string | |
return |
public value_count ( string $name, string $field ) : Elastica\Aggregation\ValueCount | ||
$name | string | |
$field | string | |
return | Elastica\Aggregation\ValueCount |