} unset($value);
$documents[] =
json_encode($row, JSON_PRESERVE_ZERO_FRACTION
);
} foreach ($remove as $id) { $documents[] =
['delete' =>
['_id' =>
$id]];
} $this->client->
bulk( [ 'index' =>
$index,
'type' =>
$repository->
getDomainName(),
'body' =>
$documents,
] );
} /**
* Removes unused indices
*
* @return void
*/