PHP 클래스 Wallmander\ElasticsearchIndexer\Service\Elasticsearch

저자: Mikael Mattsson ([email protected])
파일 보기 프로젝트 열기: wallmanderco/elasticsearch-indexer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$errorMessage
$isAvailable

공개 메소드들

메소드 설명
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

메소드 상세

getErrorMessage() 공개 정적인 메소드

Returns a latest saved status message if any.
public static getErrorMessage ( ) : string
리턴 string

getIndices() 공개 정적인 메소드

Get a neat list of all indexes as a single string.
public static getIndices ( ) : Guzzle\Http\EntityBodyInterface | string
리턴 Guzzle\Http\EntityBodyInterface | string

getStatus() 공개 정적인 메소드

Get Elasticsearch status.
public static getStatus ( ) : boolean | Guzzle\Http\EntityBodyInterface | string
리턴 boolean | Guzzle\Http\EntityBodyInterface | string

httpGet() 공개 정적인 메소드

Send a simple get request to the Elasticsearch server.
public static httpGet ( $uri ) : Guzzle\Http\Message\Response
$uri
리턴 Guzzle\Http\Message\Response

httpPost() 공개 정적인 메소드

Send a simple post request to the Elasticsearch server.
public static httpPost ( $uri, array $data = null ) : Guzzle\Http\Message\Response
$uri
$data array
리턴 Guzzle\Http\Message\Response

httpPut() 공개 정적인 메소드

Send a simple put request to the Elasticsearch server.
public static httpPut ( $uri, array $data = null ) : Guzzle\Http\Message\Response
$uri
$data array
리턴 Guzzle\Http\Message\Response

indicesExists() 공개 정적인 메소드

Check if Elasticsearch is running and the index exists.
public static indicesExists ( $index ) : boolean | Guzzle\Http\EntityBodyInterface | string
$index
리턴 boolean | Guzzle\Http\EntityBodyInterface | string

isAvailable() 공개 정적인 메소드

Evaluate if the we can search for posts.
public static isAvailable ( ) : boolean
리턴 boolean

optimize() 공개 정적인 메소드

Optimize the index for searches.
public static optimize ( $index = null ) : boolean | Guzzle\Http\EntityBodyInterface | string
$index
리턴 boolean | Guzzle\Http\EntityBodyInterface | string

ping() 공개 정적인 메소드

Ping a server and get the status and time.
public static ping ( string $host ) : array
$host string
리턴 array

setSettings() 공개 정적인 메소드

public static setSettings ( $index, array | object $data ) : boolean | Guzzle\Http\EntityBodyInterface | string
$index
$data array | object
리턴 boolean | Guzzle\Http\EntityBodyInterface | string

프로퍼티 상세

$errorMessage 보호되어 있는 정적으로 프로퍼티

protected static $errorMessage

$isAvailable 보호되어 있는 정적으로 프로퍼티

protected static $isAvailable