Метод |
Описание |
|
__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 |
|