public function bulkIndex(array $contentList, callable $errorCallback)
    {
        $fullTextBulkData = [];
        foreach ($contentList as $content) {
            try {
                $fullTextBulkData[] = $this->mapper->mapContent($content);
            } catch (NotFoundException $e) {
                $errorCallback($content, $e);
            }
        }

        $this->indexerGateway->bulkIndex($fullTextBulkData);
    }
public function bulkIndex(array $contentList, callable $errorCallback)
    {
        $fullTextBulkData = [];
        foreach ($contentList as $content) {
            try {
                $fullTextBulkData[] = $this->mapper->mapContent($content);
            } catch (NotFoundException $e) {
                $errorCallback($content, $e);
            }
        }

        $this->indexerGateway->bulkIndex($fullTextBulkData);
    }
public function bulkIndex ( array $ contentList , callable $ errorCallback ) { $ fullTextBulkData = [ ] ; foreach ( $ contentList as $ content ) { try { $ fullTextBulkData [ ] = $ this -> mapper -> mapContent ( $ content ) ; } catch ( NotFoundException $ e ) { $ errorCallback ( $ content , $ e ) ; } } $ this -> indexerGateway -> bulkIndex ( $ fullTextBulkData ) ; }
Bulk index list of content objects.

@param \eZ\Publish\SPI\Persistence\Content[] $contentList
@param callable $errorCallback (Content $content, NotFoundException $e)
Bulk index list of content objects .