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

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

Add a single document to the index.
public addDocument ( 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 Document data.
Результат Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface
    public function addDocument(IndexInterface $index, TypeInterface $type, $docId, array $data);