diff --git a/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/RecordIndexer.php b/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/RecordIndexer.php index 1b4229dbc6..22ccfc2cf4 100644 --- a/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/RecordIndexer.php +++ b/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/RecordIndexer.php @@ -191,7 +191,7 @@ class RecordIndexer }); // bulk flush : flag records as "indexed" - $bulk->onFlush(function($operation_identifiers) use ($databox) { + $bulk->onFlush(function($operation_identifiers) use ($databox, &$submited_records) { $this->onBulkFlush($databox, $operation_identifiers, $submited_records); });