Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Bulk Documents #1738

Open
EliuFlorez opened this issue Dec 27, 2019 · 1 comment
Open

Error Bulk Documents #1738

EliuFlorez opened this issue Dec 27, 2019 · 1 comment

Comments

@EliuFlorez
Copy link

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();
        }`
@ruflin
Copy link
Owner

ruflin commented Dec 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants