\Elastica\AggregationCardinality

Class Cardinality.

Summary

Methods
Properties
Constants
setField()
setScript()
toArray()
setPrecisionThreshold()
setRehash()
No public properties found
DEFAULT_PRECISION_THRESHOLD_VALUE
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DEFAULT_PRECISION_THRESHOLD_VALUE

DEFAULT_PRECISION_THRESHOLD_VALUE

Methods

setField()

setField(string  $field) : $this

Set the field for this aggregation.

Parameters

string $field

the name of the document field on which to perform this aggregation

Returns

$this

setScript()

setScript(string|\Elastica\Script\AbstractScript  $script) : $this

Set a script for this aggregation.

Parameters

string|\Elastica\Script\AbstractScript $script

Returns

$this

toArray()

toArray() 

{@inheritdoc}

setPrecisionThreshold()

setPrecisionThreshold(integer  $precisionThreshold) : $this

Parameters

integer $precisionThreshold

Returns

$this

setRehash()

setRehash(boolean  $rehash) : $this

Parameters

boolean $rehash

Returns

$this