protected function getDocument($record)
    {
        $document = new Document();
        $document->setData($record);
        $document->setType($this->type);
        $document->setIndex($this->index);

        return $document;
    }
protected function getDocument($record)
    {
        $document = new Document();
        $document->setData($record);
        $document->setType($this->type);
        $document->setIndex($this->index);

        return $document;
    }
protected function getDocument ( $ record ) { $ document = new Document ( ) ; $ document -> setData ( $ record ) ; $ document -> setType ( $ this -> type ) ; $ document -> setIndex ( $ this -> index ) ; return $ document ; }
Convert a log message into an Elastica Document

@param  array    $record Log message
@return Document
Convert a log message into an Elastica Document