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

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

$data format have to be an array of all documents with document id as key.
public addDocuments ( Smile\ElasticsuiteCore\Api\Index\IndexInterface $index, Smile\ElasticsuiteCore\Api\Index\TypeInterface $type, array $data ) : Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface
$index Smile\ElasticsuiteCore\Api\Index\IndexInterface Index the documents have to be added to.
$type Smile\ElasticsuiteCore\Api\Index\TypeInterface Document type.
$data array Document data.
Результат Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface
    public function addDocuments(IndexInterface $index, TypeInterface $type, array $data);