Elastica icon indicating copy to clipboard operation
Elastica copied to clipboard

Error Bulk Documents

Open EliuFlorez opened this issue 5 years ago • 1 comments

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 avatar Dec 27 '19 21:12 EliuFlorez

@EliuFlorez Are you running on master? Could you share the full Elasticsearch error?

ruflin avatar Dec 30 '19 09:12 ruflin