Elastica
Elastica copied to clipboard
Error Bulk Documents
Hi guys, I have a problem updating or adding 200 to 200 limit documents. I am changing everything for the new version of ES. but I have this error:
path:_bulk method:POST data: { "update":{ "_type":"listings", "_id":46772011 } } { "doc":{ "address":{ "city": "DALLAS" } } }
at the time it is adding _type instead of _index code: `if ($ids = $module->getUpsertStash()) { $elasticaClient = $this->container->get("search.engine")->getElasticaClient();
if ($response = $elasticaClient->updateDocuments($ids) and $response->hasError()) {
$logger->critical("Elasticsearch Request Error", ["error" => $response->getError()]);
}
$module->clearUpsertStash();
}`
@EliuFlorez Are you running on master? Could you share the full Elasticsearch error?