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

Author: Aurelien FOUCRET ([email protected])
Afficher le fichier Open project: smile-sa/elasticsuite

Méthodes publiques

Méthode 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 méthode

Used to log erros in compact mode.
public aggregateErrorsByReason ( ) : array
Résultat array

countErrors() public méthode

Count items with an error.
public countErrors ( ) : integer
Résultat integer

countSuccess() public méthode

Count successfull items.
public countSuccess ( ) : integer
Résultat integer

getErrorItems() public méthode

Get all items with an errors.
public getErrorItems ( ) : array
Résultat array

getSuccessItems() public méthode

Get all successfull items.
public getSuccessItems ( ) : array
Résultat array

hasErrors() public méthode

Check if the bulk has errors.
public hasErrors ( ) : boolean
Résultat boolean