elastically icon indicating copy to clipboard operation
elastically copied to clipboard

Add a way to force the refresh on the Indexer bulk request

Open damienalexandre opened this issue 5 years ago • 1 comments

Being able to set $bulk->setRequestParam('refresh', 'wait_for'); could be useful.

Same goes for pipeline.

damienalexandre avatar Jul 06 '20 14:07 damienalexandre

Being able to set $bulk->setRequestParam('refresh', 'wait_for'); could be useful.

Same goes for pipeline.

In fact I would extend to: being able to set any requestParam -> https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk-api-query-params

Very basic implementation idea : Maybe Indexer->setBulkRequestsParam(string $paramName, $value) Each value stored in an associative array (like Elastica Bulk->setRequestParam()) and each time getCurrentBulk instantiate a new Bulk object, the array is read to transfer the parameters to the new Bulk

ThibautSF avatar Oct 16 '20 14:10 ThibautSF