PHP 클래스 Elastica\QueryBuilder\DSL\Aggregation

상속: implements Elastica\QueryBuilder\DSL
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

공개 메소드들

메소드 설명
avg ( string $name ) : Elastica\Aggregation\Avg avg aggregation.
bucket_script ( string $name, array | null $bucketsPath = null, string | null $script = null ) : BucketScript bucket script aggregation.
cardinality ( string $name ) : Elastica\Aggregation\Cardinality cardinality aggregation.
children ( string $name ) children aggregation.
date_histogram ( string $name, string $field, integer $interval ) : DateHistogram 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 filter aggregation.
filters ( string $name ) : Filters 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 histogram aggregation.
ipv4_range ( string $name, string $field ) : IpRange 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 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 ) : SerialDiff serial diff aggregation.
significant_terms ( string $name ) : SignificantTerms significant terms aggregation.
stats ( string $name ) : Elastica\Aggregation\Stats stats aggregation.
sum ( string $name ) : Elastica\Aggregation\Sum sum aggregation.
terms ( string $name ) : Terms terms aggregation.
top_hits ( string $name ) : TopHits top hits aggregation.
value_count ( string $name, string $field ) : Elastica\Aggregation\ValueCount value count aggregation.

메소드 상세

avg() 공개 메소드

avg aggregation.
public avg ( string $name ) : Elastica\Aggregation\Avg
$name string
리턴 Elastica\Aggregation\Avg

bucket_script() 공개 메소드

bucket script aggregation.
public bucket_script ( string $name, array | null $bucketsPath = null, string | null $script = null ) : BucketScript
$name string
$bucketsPath array | null
$script string | null
리턴 Elastica\Aggregation\BucketScript

cardinality() 공개 메소드

cardinality aggregation.
public cardinality ( string $name ) : Elastica\Aggregation\Cardinality
$name string
리턴 Elastica\Aggregation\Cardinality

children() 공개 메소드

children aggregation.
public children ( string $name )
$name string

date_histogram() 공개 메소드

date histogram aggregation.
public date_histogram ( string $name, string $field, integer $interval ) : DateHistogram
$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
리턴 Elastica\Aggregation\DateHistogram

date_range() 공개 메소드

date range aggregation.
public date_range ( string $name ) : Elastica\Aggregation\DateRange
$name string
리턴 Elastica\Aggregation\DateRange

extended_stats() 공개 메소드

extended stats aggregation.
public extended_stats ( string $name ) : Elastica\Aggregation\ExtendedStats
$name string
리턴 Elastica\Aggregation\ExtendedStats

filter() 공개 메소드

filter aggregation.
public filter ( string $name, Elastica\Query\AbstractQuery $filter = null ) : Filter
$name string
$filter Elastica\Query\AbstractQuery
리턴 Elastica\Aggregation\Filter

filters() 공개 메소드

filters aggregation.
public filters ( string $name ) : Filters
$name string
리턴 Elastica\Aggregation\Filters

geo_bounds() 공개 메소드

geo bounds aggregation.
public geo_bounds ( string $name )
$name string

geo_distance() 공개 메소드

geo distance aggregation.
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
리턴 Elastica\Aggregation\GeoDistance

geohash_grid() 공개 메소드

geohash grid aggregation.
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
리턴 Elastica\Aggregation\GeohashGrid

getType() 공개 메소드

must return type for QueryBuilder usage.
public getType ( ) : string
리턴 string

global_agg() 공개 메소드

global aggregation.
public global_agg ( string $name ) : Elastica\Aggregation\GlobalAggregation
$name string
리턴 Elastica\Aggregation\GlobalAggregation

histogram() 공개 메소드

histogram aggregation.
public histogram ( string $name, string $field, integer $interval ) : Histogram
$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
리턴 Elastica\Aggregation\Histogram

ipv4_range() 공개 메소드

ipv4 range aggregation.
public ipv4_range ( string $name, string $field ) : IpRange
$name string
$field string
리턴 Elastica\Aggregation\IpRange

max() 공개 메소드

max aggregation.
public max ( string $name ) : Elastica\Aggregation\Max
$name string
리턴 Elastica\Aggregation\Max

min() 공개 메소드

min aggregation.
public min ( string $name ) : Elastica\Aggregation\Min
$name string
리턴 Elastica\Aggregation\Min

missing() 공개 메소드

missing aggregation.
public missing ( string $name, string $field ) : Elastica\Aggregation\Missing
$name string
$field string
리턴 Elastica\Aggregation\Missing

nested() 공개 메소드

nested aggregation.
public nested ( string $name, string $path ) : Elastica\Aggregation\Nested
$name string
$path string the nested path for this aggregation
리턴 Elastica\Aggregation\Nested

percentile_ranks() 공개 메소드

percentile ranks aggregation.
public percentile_ranks ( string $name )
$name string

percentiles() 공개 메소드

percentiles aggregation.
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
리턴 Elastica\Aggregation\Percentiles

range() 공개 메소드

range aggregation.
public range ( string $name ) : Range
$name string
리턴 Elastica\Aggregation\Range

reverse_nested() 공개 메소드

reverse nested aggregation.
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.
리턴 Elastica\Aggregation\ReverseNested

scripted_metric() 공개 메소드

scripted metric aggregation.
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
리턴 Elastica\Aggregation\ScriptedMetric

serial_diff() 공개 메소드

serial diff aggregation.
public serial_diff ( string $name, string | null $bucketsPath = null ) : SerialDiff
$name string
$bucketsPath string | null
리턴 Elastica\Aggregation\SerialDiff

significant_terms() 공개 메소드

significant terms aggregation.
public significant_terms ( string $name ) : SignificantTerms
$name string
리턴 Elastica\Aggregation\SignificantTerms

stats() 공개 메소드

stats aggregation.
public stats ( string $name ) : Elastica\Aggregation\Stats
$name string
리턴 Elastica\Aggregation\Stats

sum() 공개 메소드

sum aggregation.
public sum ( string $name ) : Elastica\Aggregation\Sum
$name string
리턴 Elastica\Aggregation\Sum

terms() 공개 메소드

terms aggregation.
public terms ( string $name ) : Terms
$name string
리턴 Elastica\Aggregation\Terms

top_hits() 공개 메소드

top hits aggregation.
public top_hits ( string $name ) : TopHits
$name string
리턴 Elastica\Aggregation\TopHits

value_count() 공개 메소드

value count aggregation.
public value_count ( string $name, string $field ) : Elastica\Aggregation\ValueCount
$name string
$field string
리턴 Elastica\Aggregation\ValueCount