-
Notifications
You must be signed in to change notification settings - Fork 736
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
Current token (VALUE_NUMBER_INT) not of boolean type #1435
Comments
TBH I don't think I fully understand (yet) what is going and if this is a Doctrine or an Elastica issue. Could you share some details on why you thinks it's an Elastica issue? |
The message error is from ElasticSearch, see java style package name: org.elasticsearch.transport.netty4.ByteBufStreamInput@1d349bde. Elastica is responsable for sent data/requests to ElasticSearch. Because of this, I think this error is in process of the convertion from doctrine Entity to Elastica, and this is sent to ElasticSearch and cause this error. But, I don't how to debug this. Or I'm fully wrong. Sorry if it looks like I want to blame it on Elastica. |
I have the same error. I think the trouble is in bulk update, the parameter is "doc_as_upsert: 1" and must be "doc_as_upsert: true" I'm using Fos/FOSElasticaBundle too |
Great @silvioq |
I changed that line for if (isset($source['doc_as_upsert'])) {
$docAsUpsert = ', "doc_as_upsert": ' . ($source['doc_as_upsert'] ? 'true' : 'false' );
} else {
$docAsUpsert = '';
} ... this works as expected! |
Please see FriendsOfSymfony/FOSElasticaBundle#1382
Version: 6.0.0
ES version: 6.1.1
PHP version: 7.1
The text was updated successfully, but these errors were encountered: