PHP 클래스 ElasticSearch\Transport\HTTP

상속: extends Base
파일 보기 프로젝트 열기: nervetattoo/elasticsearch

보호된 프로퍼티들

프로퍼티 타입 설명
$ch resource curl handler which is needed for reusing existing http connection to the server

공개 메소드들

메소드 설명
__construct ( $host = 'localhost', $port = 9200, $timeout = null )
delete ( mixed $id = false, array $options = [] ) : array Flush this index/type combination
deleteByQuery ( mixed $query, array $options = [] ) : array Search
getTimeout ( )
index ( array $document, mixed $id = false, array $options = [] ) : array Index a new document or update it if existing
request ( string | array $path, string $method = "GET", array | boolean $payload = false ) : array Perform a request against the given path/method/payload combination Example: $es->request('/_status');
search ( array | string $query, array $options = [] ) : array Search
setTimeout ( $timeout )
update ( array $partialDocument, mixed $id, array $options = [] ) : array Update a part of a document

보호된 메소드들

메소드 설명
call ( string $url, string $method = "GET", array | boolean $payload = null ) : array Perform a http call against an url with an optional payload

메소드 상세

__construct() 공개 메소드

public __construct ( $host = 'localhost', $port = 9200, $timeout = null )

call() 보호된 메소드

Perform a http call against an url with an optional payload
protected call ( string $url, string $method = "GET", array | boolean $payload = null ) : array
$url string
$method string (GET/POST/PUT/DELETE)
$payload array | boolean The document/instructions to pass along
리턴 array

delete() 공개 메소드

Flush this index/type combination
public delete ( mixed $id = false, array $options = [] ) : array
$id mixed Id of document to delete
$options array Parameters to pass to delete action
리턴 array

deleteByQuery() 공개 메소드

Search
public deleteByQuery ( mixed $query, array $options = [] ) : array
$query mixed
$options array Parameters to pass to delete action
리턴 array

getTimeout() 공개 메소드

public getTimeout ( )

index() 공개 메소드

Index a new document or update it if existing
public index ( array $document, mixed $id = false, array $options = [] ) : array
$document array
$id mixed Optional
$options array
리턴 array

request() 공개 메소드

Perform a request against the given path/method/payload combination Example: $es->request('/_status');
public request ( string | array $path, string $method = "GET", array | boolean $payload = false ) : array
$path string | array
$method string
$payload array | boolean
리턴 array

setTimeout() 공개 메소드

public setTimeout ( $timeout )

update() 공개 메소드

Update a part of a document
public update ( array $partialDocument, mixed $id, array $options = [] ) : array
$partialDocument array
$id mixed
$options array
리턴 array

프로퍼티 상세

$ch 보호되어 있는 프로퍼티

curl handler which is needed for reusing existing http connection to the server
protected resource $ch
리턴 resource