diff --git a/CHANGELOG.md b/CHANGELOG.md index f01ec3c..3ca5f35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - `ElasticsearchService::getItemById()` always returned null because it compared the hit total against an integer while Elasticsearch returns an object - Deleting an entity together with its `LoggableChildInterface` children crashed the update handler: the child's delete log triggers an update log for the parent, whose identifier Doctrine has already cleared; such updates are now skipped +- `ElasticsearchService::bulkCreate()` now refreshes the index like `createItem()` and `updateItem()` already do; previously, current data trackers written by the populate command were not immediately searchable, so updates arriving right after population were silently dropped ## [1.2.0] - 2026-07-02 diff --git a/src/Bridge/Elasticsearch/ElasticsearchService.php b/src/Bridge/Elasticsearch/ElasticsearchService.php index 50d3737..bc54084 100644 --- a/src/Bridge/Elasticsearch/ElasticsearchService.php +++ b/src/Bridge/Elasticsearch/ElasticsearchService.php @@ -53,6 +53,7 @@ public function bulkCreate(array $items, string $index, array $groups = []): voi $request = [ 'index' => $index, 'body' => $params, + 'refresh' => 'true', ]; $this->elasticsearchClient->getClient()->bulk($request);