include/SugarSearchEngine/Elastic/Elastica/Node/Stats.php
Elastica cluster node object
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
- Package
- Elastica
\Elastica_Node_Stats
Package: Elastica
Returns
Elastica cluster node object
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
Properties
Methods
__construct(
\Elastica_Node $node
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$node | \Elastica_Node | Elastica node object |
get(
)
:
array
Returns all node stats as array based on the arguments
Several arguments can be use get('index', 'test', 'example')
Type | Description |
---|---|
array | Node stats for the given field or null if not found |
getResponse(
)
:
\Elastica_Response
Returns response object
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |
refresh(
)
:
\Elastica_Response
Reloads all nodes information. Has to be called if informations changed
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |