PHP Class Isswp101\Persimmon\Collection\ElasticsearchCollection

Inheritance: extends Illuminate\Support\Collection
Show file Open project: isswp101/elasticsearch-eloquent Class Usage Examples

Protected Properties

Property Type Description
$response array Elasticsearch response.

Public Methods

Method Description
getAggregation ( string $name ) : Bucket[]
getMaxScore ( ) : integer
getShards ( ) : array
getTook ( ) : integer
getTotal ( ) : integer
isTimedOut ( ) : boolean
response ( array $response ) Put response.

Method Details

getAggregation() public method

public getAggregation ( string $name ) : Bucket[]
$name string
return Isswp101\Persimmon\QueryBuilder\Aggregations\Bucket[]

getMaxScore() public method

public getMaxScore ( ) : integer
return integer

getShards() public method

public getShards ( ) : array
return array

getTook() public method

public getTook ( ) : integer
return integer

getTotal() public method

public getTotal ( ) : integer
return integer

isTimedOut() public method

public isTimedOut ( ) : boolean
return boolean

response() public method

Put response.
public response ( array $response )
$response array

Property Details

$response protected property

Elasticsearch response.
protected array $response
return array