Index a new document or update it if existing
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 |
return |