Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Elastica
Aggregation
AbstractSimpleAggregation
PHP Class Elastica\Aggregation\AbstractSimpleAggregation
Inheritance:
extends
AbstractAggregation
Show file
Open project: ruflin/elastica
Public Methods
Method
Description
setField
(
string
$field
)
Set the field for this aggregation.
setScript
(
string
| Elastica\Script\AbstractScript
$script
)
Set a script for this aggregation.
toArray
( )
Method Details
setField()
public
method
Set the field for this aggregation.
public
setField
(
string
$field
)
$field
string
the name of the document field on which to perform this aggregation
setScript()
public
method
Set a script for this aggregation.
public
setScript
(
string
| Elastica\Script\AbstractScript
$script
)
$script
string
| Elastica\Script\AbstractScript
toArray()
public
method
public
toArray
( )