Elastica\Aggregation\Range::setKeyedResponse PHP Method

setKeyedResponse() public method

If set to true, a unique string key will be associated with each bucket, and ranges will be returned as an associative array.
public setKeyedResponse ( boolean $keyed = true )
$keyed boolean
    public function setKeyedResponse($keyed = true)
    {
        return $this->setParam('keyed', (bool) $keyed);
    }