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
null
Details- Type
- \Elastica_Response
Methods
__construct(
\Elastica_Client $client
)
:
void
Constructs Status object
Parameters
Name | Type | Description |
---|---|---|
$client | \Elastica_Client | Client object |
aliasExists(
string $name
)
:
bool
Checks if the given alias exists
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string | Alias name |
Type | Description |
---|---|
bool | True if alias exists |
getIndexNames(
)
:
array
Returns a list of the existing index names
Returns
Type | Description |
---|---|
array | Index names list |
getIndexStatuses(
)
:
array
Returns status objects of all indices
Returns
Type | Description |
---|---|
array | List of Elastica_Client_Index objects |
getIndicesWithAlias(
string $name
)
:
array
Returns 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_Response
Returns response object
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |
indexExists(
string $name
)
:
bool
Checks if the given index exists
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string | Index name to check |
Type | Description |
---|---|
bool | True if index exists |