Method |
Description |
|
__construct ( string $host, integer $port ) |
Default constructor, just set host and port |
|
delete ( mixed $id = false ) |
Delete a document by its id |
|
deleteByQuery ( mixed $query, array $options = [] ) : array |
Search |
|
index ( array | object $document, mixed $id = false, array $options = [] ) |
Method for indexing a new document |
|
request ( string | array $path, string $method = "GET", array | boolean $payload = false ) |
Perform a request against the given path/method/payload combination
Example:
$es->request('/_status'); |
|
search ( array | string $query ) |
Perform a search based on query |
|
setIndex ( string $index ) |
Set what index to act against |
|
setType ( string $type ) |
Set what document types to act against |
|
update ( array | object $partialDocument, mixed $id, array $options = [] ) |
Method for updating a document |
|