include/SugarSearchEngine/Elastic/Elastica/Status.php
Elastica general status
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
- Package
- Elastica
\Elastica_Status
Package: Elastica
Elastica general status
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
Properties

\Elastica_Response
$_response= 'null'
Contains all status infos
Response object
Default value
nullDetails- Type
- \Elastica_Response
Methods

__construct(
\Elastica_Client $client
)
:
voidConstructs Status object
Parameters
| Name | Type | Description |
|---|---|---|
| $client | \Elastica_Client | Client object |

aliasExists(
string $name
)
:
boolChecks if the given alias exists
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string | Alias name |
| Type | Description |
|---|---|
| bool | True if alias exists |

getIndexNames(
)
:
arrayReturns a list of the existing index names
Returns
| Type | Description |
|---|---|
| array | Index names list |

getIndexStatuses(
)
:
arrayReturns status objects of all indices
Returns
| Type | Description |
|---|---|
| array | List of Elastica_Client_Index objects |

getIndicesWithAlias(
string $name
)
:
arrayReturns an array with all indices that the given alias name points to
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string | Alias name |
| Type | Description |
|---|---|
| array | List of Elastica_Index |

getResponse(
)
:
\Elastica_ResponseReturns response object
Returns
| Type | Description |
|---|---|
| \Elastica_Response | Response object |

indexExists(
string $name
)
:
boolChecks if the given index exists
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string | Index name to check |
| Type | Description |
|---|---|
| bool | True if index exists |