Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
damienalexandre opened this issue Jul 6, 2020 · 1 comment
Open
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest

Comments

@damienalexandre
Copy link
Member

damienalexandre commented Jul 6, 2020

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

Same goes for pipeline.

@ThibautSF
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants