Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface::updateDocument PHP Метод

updateDocument() публичный Метод

Note : only updated fields are needed into data. Others fields are kept untouched by the update operation.
public updateDocument ( Smile\ElasticsuiteCore\Api\Index\IndexInterface $index, Smile\ElasticsuiteCore\Api\Index\TypeInterface $type, string | integer $docId, array $data ) : Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface
$index Smile\ElasticsuiteCore\Api\Index\IndexInterface Index the document has to be added to.
$type Smile\ElasticsuiteCore\Api\Index\TypeInterface Document type.
$docId string | integer Document id.
$data array Updated data.
Результат Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface Self reference.
    public function updateDocument(IndexInterface $index, TypeInterface $type, $docId, array $data);