Last Update : 2023-09-22 UTC 11:09:49 AM
How to do bulk delete in PHP ElasticSearch w3coded php delete API? I know that there are issues with delete by w3coded php delete query princip, so I want to try the bulk delete w3coded php delete function, but I don't know how to use it. So, I w3coded php delete want to know how to use the $client -> bulk w3coded php delete method of the ElasticSearch PHP API. Anyone?, w3coded php delete w3coded php delete w3coded php delete Meta Stack Overflow w3coded php delete ,Stack Overflow en español,Stack w3coded php delete Overflow em Português
Turns out it is very simple:
for ($i = 303; $i < 310; $i++) {
$params ['body'][] = array(
'delete' => array(
'_index' => 'er',
'_type' => 'state',
'_id' => $i
)
);
}
$response = $client -> bulk($params);
Last Update : 2023-09-22 UTC 12:30:32 PM
Last Update : 2023-09-22 UTC 12:30:27 PM
Last Update : 2023-09-22 UTC 12:30:13 PM
Last Update : 2023-09-22 UTC 12:29:53 PM
Last Update : 2023-09-22 UTC 12:29:46 PM
Last Update : 2023-09-22 UTC 12:29:10 PM
Last Update : 2023-09-22 UTC 12:29:02 PM