Метод | Описание | |
---|---|---|
__construct ( elasticsearch\Client $client ) | Construct a bulk operation | |
commit ( ) | commit this operation | |
count ( ) : integer | count all pending operations | |
createPayload ( ) : string | create a request payload with all pending operations | |
delete ( mixed $id = false, string $index, string $type, array $options = [] ) : |
delete a document | |
getOperations ( ) : array | get all pending operations | |
index ( array $document, mixed $id = null, string $index, string $type, array $options = [] ) : |
Index a new document or update it if existing | |
reset ( ) | reset this operation | |
update ( array $partialDocument, mixed $id, string $index, string $type, array $options = [] ) : |
Update a part of a document |
public __construct ( elasticsearch\Client $client ) | ||
$client | elasticsearch\Client |
public createPayload ( ) : string | ||
Результат | string |
public getOperations ( ) : array | ||
Результат | array |
public index ( array $document, mixed $id = null, string $index, string $type, array $options = [] ) : |
||
$document | array | |
$id | mixed | Optional |
$index | string | Index |
$type | string | Type |
$options | array | Allow sending query parameters to control indexing further _refresh_ *bool* If set to true, immediately refresh the shard after indexing |
Результат |
public update ( array $partialDocument, mixed $id, string $index, string $type, array $options = [] ) : |
||
$partialDocument | array | |
$id | mixed | |
$index | string | Index |
$type | string | Type |
$options | array | Allow sending query parameters to control indexing further _refresh_ *bool* If set to true, immediately refresh the shard after indexing |
Результат |