Property | Type | Description | |
---|---|---|---|
$errorMessage | |||
$isAvailable |
Method | Description | |
---|---|---|
getErrorMessage ( ) : string | Returns a latest saved status message if any. | |
getIndices ( ) : Guzzle\Http\EntityBodyInterface | string | Get a neat list of all indexes as a single string. | |
getStatus ( ) : boolean | Guzzle\Http\EntityBodyInterface | string | Get Elasticsearch status. | |
httpGet ( $uri ) : Guzzle\Http\Message\Response | Send a simple get request to the Elasticsearch server. | |
httpPost ( $uri, array $data = null ) : Guzzle\Http\Message\Response | Send a simple post request to the Elasticsearch server. | |
httpPut ( $uri, array $data = null ) : Guzzle\Http\Message\Response | Send a simple put request to the Elasticsearch server. | |
indicesExists ( $index ) : boolean | Guzzle\Http\EntityBodyInterface | string | Check if Elasticsearch is running and the index exists. | |
isAvailable ( ) : boolean | Evaluate if the we can search for posts. | |
optimize ( $index = null ) : boolean | Guzzle\Http\EntityBodyInterface | string | Optimize the index for searches. | |
ping ( string $host ) : array | Ping a server and get the status and time. | |
setSettings ( $index, array | object $data ) : boolean | Guzzle\Http\EntityBodyInterface | string |
public static getErrorMessage ( ) : string | ||
return | string |
public static getIndices ( ) : Guzzle\Http\EntityBodyInterface | string | ||
return | Guzzle\Http\EntityBodyInterface | string |
public static httpGet ( $uri ) : Guzzle\Http\Message\Response | ||
$uri | ||
return | Guzzle\Http\Message\Response |
public static indicesExists ( $index ) : boolean | Guzzle\Http\EntityBodyInterface | string | ||
$index | ||
return | boolean | Guzzle\Http\EntityBodyInterface | string |
public static isAvailable ( ) : boolean | ||
return | boolean |