Classes/Indexer/NodeIndexer.php
public function withBulkProcessing(callable $callback)
    {
        $bulkProcessing = $this->bulkProcessing;
        $this->bulkProcessing = true;
        try {
            /** @noinspection PhpUndefinedMethodInspection */
            $callback->__invoke();
        } catch (\Exception $exception) {
            $this->bulkProcessing = $bulkProcessing;
            throw $exception;
        }
        $this->bulkProcessing = $bulkProcessing;
    }
public function withBulkProcessing(callable $callback)
    {
        $bulkProcessing = $this->bulkProcessing;
        $this->bulkProcessing = true;
        try {
            /** @noinspection PhpUndefinedMethodInspection */
            $callback->__invoke();
        } catch (\Exception $exception) {
            $this->bulkProcessing = $bulkProcessing;
            throw $exception;
        }
        $this->bulkProcessing = $bulkProcessing;
    }
public function withBulkProcessing ( callable $ callback ) { $ bulkProcessing = $ this -> bulkProcessing ; $ this -> bulkProcessing = true ; try { /** @noinspection PhpUndefinedMethodInspection */ $ callback -> __invoke ( ) ; } catch ( \ Exception $ exception ) { $ this -> bulkProcessing = $ bulkProcessing ; throw $ exception ; } $ this -> bulkProcessing = $ bulkProcessing ; }
Perform indexing without checking about duplication document

This is used during bulk indexing to improve performance

@param callable $callback
@throws \Exception
Perform indexing without checking about duplication document