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(
)
:
arrayReturns 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_ResponseReturns response object
Returns
| Type | Description |
|---|---|
| \Elastica_Response | Response object |

refresh(
)
:
\Elastica_ResponseReloads all nodes information. Has to be called if informations changed
Returns
| Type | Description |
|---|---|
| \Elastica_Response | Response object |