Method |
Description |
|
__construct ( $host = "127.0.0.1", $port = 11311, $timeout = null ) |
|
|
delete ( mixed $id = false, array $options = [] ) : array |
Flush this index/type combination |
|
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 |
Search |
|
update ( array $partialDocument, mixed $id, array $options = [] ) : array |
Update a part of a document |
|