public function persistBulk($documents)
    {
        if (empty($documents)) {
            $this->log('No more documents to index', 'info');
            return;
        }
        $this->log(sprintf('Indexing %d documents', count($documents)), 'info');
        ConnectionManager::get('auditlog_elastic')->addDocuments($documents);
    }
public function persistBulk($documents)
    {
        if (empty($documents)) {
            $this->log('No more documents to index', 'info');
            return;
        }
        $this->log(sprintf('Indexing %d documents', count($documents)), 'info');
        ConnectionManager::get('auditlog_elastic')->addDocuments($documents);
    }
public function persistBulk ( $ documents ) { if ( empty ( $ documents ) ) { $ this -> log ( 'No more documents to index' , 'info' ) ; return ; } $ this -> log ( sprintf ( 'Indexing %d documents' , count ( $ documents ) ) , 'info' ) ; ConnectionManager :: get ( 'auditlog_elastic' ) -> addDocuments ( $ documents ) ; }
Persists the array of passed documents into elastic search.

@param array $documents List of Elastica\Document objects to be persisted
@return void
Persists the array of passed documents into elastic search .