PHP Interface Smile\ElasticsuiteCore\Api\Index\Bulk\BulkResponseInterface

Author: Aurelien FOUCRET ([email protected])
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
aggregateErrorsByReason ( ) : array Aggregate all errors by index, document_type, error type and reason.
countErrors ( ) : integer Count items with an error.
countSuccess ( ) : integer Count successfull items.
getErrorItems ( ) : array Get all items with an errors.
getSuccessItems ( ) : array Get all successfull items.
hasErrors ( ) : boolean Check if the bulk has errors.

Method Details

aggregateErrorsByReason() public method

Used to log erros in compact mode.
public aggregateErrorsByReason ( ) : array
return array

countErrors() public method

Count items with an error.
public countErrors ( ) : integer
return integer

countSuccess() public method

Count successfull items.
public countSuccess ( ) : integer
return integer

getErrorItems() public method

Get all items with an errors.
public getErrorItems ( ) : array
return array

getSuccessItems() public method

Get all successfull items.
public getSuccessItems ( ) : array
return array

hasErrors() public method

Check if the bulk has errors.
public hasErrors ( ) : boolean
return boolean