public insert ( string $index, string $type, string | array $data, null $id = null, array $options = [] ) : mixed | ||
$index | string | |
$type | string | |
$data | string | array | json string or array of data to store |
$id | null | the documents id. If not specified Id will be automatically chosen |
$options | array | |
Результат | mixed |